You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
For CCP 4.0, in the category view where all the thumbnails of items are displayed....
The URL link underneath each thumbnail displays the Product Number, Product Name and Product Price.
I would like to change the URL link display so that it substitutes the Product Price with the $product_shipping_method_three_price field.
Everything else would stay the same. What's the best way to do this?
You can edit that link in ./cgi-bin/library/modules/site_store_small_display.pl. The routine in in the middle of the perl file.
___________________________
Nick Hendler
Webmaster, Kryptronic, Inc.
Offline
I edited the Sub Site Store Small Display Cell section of site_store_small_display.pl file with the following changes. It looks to be that the field $product_shipping_method_three_price is being not being read in correct. I am getting "0" for the $product_shipping_method_three_price field. That field is being populated with a number on each product.
here's my modification to code
if ($product_price eq "0.00") {
print <<ENDOFTEXT;
<A HREF="$common_url&pg=store&sub_pg=prod&ref=$product_ref_no">$product_number - $product_name</A>
ENDOFTEXT
} else {
print <<ENDOFTEXT;
<A HREF="$common_url&pg=store&sub_pg=prod&ref=$product_ref_no">$product_number - $product_name - $currency_symbol$product_shipping_method_three_price</A>
ENDOFTEXT
} ######### End of if statement.
$product_shipping_method_three_price is not passed to that routine. Why would you want the shipping price there instead of the product price?
___________________________
Nick Hendler
Webmaster, Kryptronic, Inc.
Offline
Client wants to show a per unit price so that it is easier to compare to other stores. Unit price is like when you go shopping at the grocery store, and you see it shows you $/lb or $/oz.
I am putting the unit price field into the third shipping method price field and trying to place it into the link.
What would I need to do to pass the $product_shipping_method_three_price field or is there another available field I can use that is already passed in the routine?