Click here to Skip to main content
15,917,862 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: Godd css Layouts Pin
George L. Jackson17-Sep-07 0:12
George L. Jackson17-Sep-07 0:12 
QuestionWeb-based HTML Editors preferring STRONG instead of B Pin
Vasudevan Deepak Kumar14-Sep-07 23:37
Vasudevan Deepak Kumar14-Sep-07 23:37 
AnswerRe: Web-based HTML Editors preferring STRONG instead of B Pin
Fred_Smith15-Sep-07 3:05
Fred_Smith15-Sep-07 3:05 
QuestionHow come javascript onfocus and onblur events do not fire in IE more then once? Pin
rgordon9914-Sep-07 6:52
rgordon9914-Sep-07 6:52 
AnswerRe: How come javascript onfocus and onblur events do not fire in IE more then once? Pin
daveyerwin15-Sep-07 6:29
daveyerwin15-Sep-07 6:29 
QuestionRequesting the link for WS guidlines... Pin
Sushil D Jadhav14-Sep-07 3:58
Sushil D Jadhav14-Sep-07 3:58 
QuestionUsing XML Web Service With JavaScript Pin
i-developer of Istanbul14-Sep-07 3:20
i-developer of Istanbul14-Sep-07 3:20 
QuestionQUESTION Related PHP + OSCOMMERCE Pin
| Muhammad Waqas Butt |13-Sep-07 22:16
professional| Muhammad Waqas Butt |13-Sep-07 22:16 
Hi, Please help me, i want to display stock status on the main page (New Product section) with price condition. I have two conditions

1- if QTY is ==0 than display [b]"Out of Stock"[/b] and if QTY>0 than display [b]"In Stock"[/b]

2- if Price is ==0 than display [b] "Call 4 Price" and if price is >0 than display [b]"Product Price"[/b].

Now I have writing a code, which is not working properly can anybody help out. here is my code:

<br />
if($new_products['products_quantity'] == 0)// or $product_info['products_quantity'] = 0)<br />
{ <br />
 $info_box_contents[$row][$col] = array('align' => 'center',<br />
                                           'params' => 'class="smallText" width="33%" valign="top"',<br />
                                           'text' => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $new_products['products_image'], $new_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . $new_products['products_name'] . '</a><br>'.TEXT_PRODCUT_OUT_OF_STOCK.'('. $new_products['products_quantity'].')</br>' . $currencies->display_price($new_products['products_price'], tep_get_tax_rate($new_products['products_tax_class_id'])));<br />
<br />
}<br />
else if($new_products['products_price'] == 0)// or $product_info['products_quantity'] = 0)<br />
{ <br />
    $info_box_contents[$row][$col] = array('align' => 'center',<br />
                                           'params' => 'class="smallText" width="33%" valign="top"',<br />
                                           'text' => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $new_products['products_image'], $new_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . $new_products['products_name'] . '</a><br>'. TEXT_PRODUCT_IN_STOCK.'('.$new_products['products_quantity'].')<br>'.TEXT_CALL_FOR_PRICE);//TEXT_PRODCUT_OUT_OF_STOCK <br />
<br />
}<br />
else<br />
{<br />
    $info_box_contents[$row][$col] = array('align' => 'center',<br />
                                           'params' => 'class="smallText" width="33%" valign="top"',<br />
                                           'text' => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $new_products['products_image'], $new_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . $new_products['products_name'] . '</a><br>'.TEXT_PRODUCT_IN_STOCK .'('.$new_products['products_quantity'].')</br>' . $currencies->display_price($new_products['products_price'], tep_get_tax_rate($new_products['products_tax_class_id'])));<br />
}<br />


Please email at waqasb4all@yahoo.com

|Muhamad Waqas Butt|
waqasb4all@yahoo.com
www.buybestpc.com
www.iriverpakistan.com

QuestionPostback event doesnt fire first time -- safari Pin
Viral Upadhyay13-Sep-07 20:15
Viral Upadhyay13-Sep-07 20:15 
AnswerRe: Postback event doesnt fire first time -- safari Pin
Guffa14-Sep-07 6:15
Guffa14-Sep-07 6:15 
GeneralRe: Postback event doesnt fire first time -- safari Pin
Viral Upadhyay14-Sep-07 20:21
Viral Upadhyay14-Sep-07 20:21 
AnswerRe: Postback event doesnt fire first time -- safari Pin
Guffa14-Sep-07 21:59
Guffa14-Sep-07 21:59 
GeneralRe: Postback event doesnt fire first time -- safari Pin
Viral Upadhyay14-Sep-07 23:33
Viral Upadhyay14-Sep-07 23:33 
GeneralRe: Postback event doesnt fire first time -- safari Pin
saini arun15-Sep-07 3:42
saini arun15-Sep-07 3:42 
Questioncan you pass a variable into a Include File Statement? Pin
ronchase13-Sep-07 19:09
ronchase13-Sep-07 19:09 
AnswerRe: can you pass a variable into a Include File Statement? Pin
Guffa13-Sep-07 19:40
Guffa13-Sep-07 19:40 
QuestionASP.Net Trusted IP Pin
hifiger200413-Sep-07 19:08
hifiger200413-Sep-07 19:08 
AnswerRe: ASP.Net Trusted IP Pin
\laddie13-Sep-07 20:14
\laddie13-Sep-07 20:14 
GeneralRe: ASP.Net Trusted IP Pin
hifiger200413-Sep-07 20:52
hifiger200413-Sep-07 20:52 
GeneralRe: ASP.Net Trusted IP Pin
\laddie13-Sep-07 21:17
\laddie13-Sep-07 21:17 
GeneralRe: ASP.Net Trusted IP Pin
hifiger200413-Sep-07 21:26
hifiger200413-Sep-07 21:26 
GeneralRe: ASP.Net Trusted IP Pin
\laddie13-Sep-07 21:41
\laddie13-Sep-07 21:41 
AnswerRe: ASP.Net Trusted IP Pin
hifiger200413-Sep-07 21:47
hifiger200413-Sep-07 21:47 
QuestionCommon question with a twist, I think, Pin
rudemusik13-Sep-07 18:00
rudemusik13-Sep-07 18:00 
GeneralRe: Common question with a twist, I think, Pin
Guffa13-Sep-07 19:41
Guffa13-Sep-07 19:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.