Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help Needed.....Please check this code


Guest

Recommended Posts

This is my first post so please be gentle.

 

I have just implemented free shipping contribution by Marcelo_73.

 

The contribution lets you set an item weight to zero which in turn 'turns off' shipping cost at checkout. It also places a FREE SHIPPING icon into the product_info.php and product_listing.php when 'product_weight' returns a 0.

 

product_info.php is working fine in that the icon appears only when a product has a 0 weight.

 

includes/modules/product_listing.php is not working in that every item shows the icon.

 

I think the error is in this piece of coding but it is beyond me, please take a look and let me know if there is an obvious error here.

 

case 'PRODUCT_LIST_PRICE':

$lc_align = 'right';

if (tep_not_null($listing['specials_new_products_price'])) {

$lc_text = ' <s>' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</s>  <span class="productSpecialPrice">' . $currencies->display_price($listing['specials_new_products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</span> ';

}

elseif ($listing['products_weight'] == 0){

$lc_text = ' ' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '  <br><img src="includes/languages/english/images/buttons/frete_gratis.gif">';

 

}

break;

 

 

 

Thank for taking the time.

 

Dave

:'(

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...