hello,
I'm using opencart 2.x at http:ddplus.us/clone. I just want to know which file to edit in order show a button with value "Select options" rather than the price label ($0.00) for the products which carry options (variable products) Please find the attachment by which i hope you can understand and please let me know which file & code snippet do i edit in order to get the desired appearance.
Thanks in Advance
Hi,
Can you please explain more details what do you want? According your attached picture you want that if price is 0.00 this price should be placed to the red bordered box? Or this 0.00 price should be change to some button with the link to options?
Can you please explain more details what do you want? According your attached picture you want that if price is 0.00 this price should be placed to the red bordered box? Or this 0.00 price should be change to some button with the link to options?
Custom OpenCart modules and solutions. You can write PM with additional questions... Extensions you can find here
Ok
You can try
find in file:
catalog/view/theme/YOUR THEME/template/product/category.tpl
replace it if you currency € and it placed in right (formatted like this: 0.00€):
I have not tried, but it can put you, on the right way.
Good Luck
You can try
find in file:
catalog/view/theme/YOUR THEME/template/product/category.tpl
Code: Select all
<?php echo $product['price']; ?>
Code: Select all
<?php if ($product['price'] == "0.00€" ) { ?>
<a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?> <!--this string your prefered url-->
<?php } else { ?>
echo $product['price'];
<?php } ?>
Good Luck
Custom OpenCart modules and solutions. You can write PM with additional questions... Extensions you can find here
Who is online
Users browsing this forum: No registered users and 21 guests