I want to get rid of the price increases next to the options in the drop down box on the product page. I am not sure where to look in the controller file (or confident enough to play around with it) to comment the code out.
thanks.
thanks.
Code: Select all
$option_value_data[] = array(
'product_option_value_id' => $option_value['product_option_value_id'],
'option_value_id' => $option_value['option_value_id'],
'name' => $option_value['name'],
'image' => $this->model_tool_image->resize($option_value['image'], 50, 50),
'price' => $price,
'price_prefix' => $option_value['price_prefix']
);
and change the line
'price' => $price,
to
'price' => '',
This will just hide the +xx or -xx but the price is added when you add to cart.
So you have to insert the option price to zero while inserting the product.
www.vtrainingroom.com
www.vtraininggames.com
www.hostsonar.com
Inserting the price of option to zero will help.
or
change to
But if you entered the price of option while inserting the product then the price will be added to the cart product so while inserting the product you must enter the price option to be zero.
or
Code: Select all
$option_value_data[] = array(
'product_option_value_id' => $option_value['product_option_value_id'],
'option_value_id' => $option_value['option_value_id'],
'name' => $option_value['name'],
'image' => $this->model_tool_image->resize($option_value['image'], 50, 50),
'price' => $price,
'price_prefix' => $option_value['price_prefix']
);
change to
Code: Select all
$option_value_data[] = array(
'product_option_value_id' => $option_value['product_option_value_id'],
'option_value_id' => $option_value['option_value_id'],
'name' => $option_value['name'],
'image' => $this->model_tool_image->resize($option_value['image'], 50, 50),
'price' => '',
'price_prefix' => $option_value['price_prefix']
);
www.vtrainingroom.com
www.vtraininggames.com
www.hostsonar.com
That would do it.
I am running a script that auto updates the price based off dropdown selection. When I get rid of $price, the script has no inputs. Any ideas how to work around this?
script for this is here:
http://www.jackwdavis.com/2012/02/22/au ... mment-2600
I am running a script that auto updates the price based off dropdown selection. When I get rid of $price, the script has no inputs. Any ideas how to work around this?
script for this is here:
http://www.jackwdavis.com/2012/02/22/au ... mment-2600
Just edit the template file and remove product option price from being shown. Given the answer here http://forum.opencart.com/viewtopic.php ... 62#p349662
You probably made an error making the changes. Restore from a backup and try again.
for OC version 2x - go to product.tpl, around line 120, finde code
and change to
Adding comment tags at start & finish hides the php from printing on the page. You could also just rem out the 'echo' only
Code: Select all
(<?php echo $option_value['price_prefix']; ?><?php echo $option_value['price']; ?>)
and change to
Code: Select all
<!-- (<?php echo $option_value['price_prefix']; ?><?php echo $option_value['price']; ?>) -->
Kind Regards
Design Buoy / ADG Hosting
Opencart Hosting | Opencart Modules | Opencart Design & Templates
Yes, that really helped me for 2.1.0.1!DesignBuoy wrote: ↑Fri Mar 24, 2017 1:12 pmfor OC version 2x - go to product.tpl, around line 120, finde codeCode: Select all
(<?php echo $option_value['price_prefix']; ?><?php echo $option_value['price']; ?>)
and change toAdding comment tags at start & finish hides the php from printing on the page. You could also just rem out the 'echo' onlyCode: Select all
<!-- (<?php echo $option_value['price_prefix']; ?><?php echo $option_value['price']; ?>) -->
Thanks!
Does your customer still see either the full price (base + option), or separate base and option prices before they add the product to their cart? If they see only the base price, and not the option add amount, what you're doing is probably illegal. Be careful.
Who is online
Users browsing this forum: o3445 and 60 guests