Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product Listing Module Assistance Required


Guest

Recommended Posts

Posted

I have been chewing around with this now for too long and its getting more cloudy as I speak.

 

whyohwhy.jpg

 

I have tried to add 'free shipping' display into the product listing incorporated into the 'case 'PRODUCT_LIST_PRICE':' code:

 

				case 'PRODUCT_LIST_PRICE':
			$lc_align = 'right';
			if (tep_not_null($listing[$x]['specials_new_products_price']) || ($listing[$x]['products_free_shipping'] && FREE_SHIPPING_TO_ALL_COUNTRIES == "true")) {
				$lc_text = ' <s>' .  $currencies->display_price($listing[$x]['products_price'], tep_get_tax_rate($listing[$x]['products_tax_class_id'])) . '</s>  <span class="productSpecialPrice">' . $currencies->display_price($listing[$x]['specials_new_products_price'], tep_get_tax_rate($listing[$x]['products_tax_class_id'])) . '</span><br>'.tep_image(DIR_WS_IMAGES . 'freedelsmall.gif', 'Order now and receive free delivery on this product!', '108', '10').'';
			} else if ($listing[$x]['products_free_shipping'] && FREE_SHIPPING_TO_ALL_COUNTRIES == "false") {
				$lc_text = ' ' . TEXT_OUR_PRICE . ' ' . $currencies->display_price($listing[$x]['products_price'], tep_get_tax_rate($listing[$x]['products_tax_class_id'])) . '<br>'.tep_image(DIR_WS_IMAGES . 'freedelsmall.gif', 'Order now and receive free delivery on this product!', '108', '10').'';
			}
			break;

 

Now the problem as you can see is that when 'free shipping' is not set against the product for some reason it is not displaying the product price but repeating the product name.

 

I hope someone can give me a hint as to why??? (cos its doing my head in lol)

 

Thanks

 

Aran

Posted
Looks like this: $listing[$x]['products_free_shipping'] is not being picked up, hence no display.

 

very strange because I have added

 

p.products_free_shipping

 

to all the listing queries in the index.php file (have I missed a query in another file somewhere urgh)

 

Aran

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...