Hi themeburn,
In Opencart Extensions there are some sweat and useful mods like this Live Price Update with Options and it would be a shame not to be compatible with Shoppica2.
This mod uses Ajax to change in real time the price according to the product options.
It’s not working yet but it’s just missing a bit of code to make it work.
That’s why I need your help because I’m no coder.
So, default OC Theme, in product.tplĀ uses:
<?php echo $price; ?>
But Shoppica2 uses something else and this “something” is what I need…
Here goes the Xml code:
<?xml version="1.0" encoding="UTF-8"?>
<modification>
<id>Live Price Update with Options</id>
<version>2.0.9</version>
<vqmver>2.2.1</vqmver>
<author>cmd</author>
<file name="catalog/view/theme/*/template/product/product.tpl">
<operation>
<search position="replace"><![CDATA[<?php echo $price; ?>]]></search>
<add><![CDATA[<span id="price_container"><?php echo $price; ?></span>
<script type="text/javascript" src="index.php?route=product/ajaxoptions/js&product_id=<?php echo $product_id; ?>"></script>]]></add>
</operation>
</file>
</modification>
|
|
Hello, i just had a look in product.tpl and there is a echo $tbData->priceFormat($price);
i guess that’s it ?
i’ll try your vqmod extension it looks nice !
|
|
Hi StudioLeBus,
Needless to say I’m not the author.
This extension is followed by a javascript.
You won’t be able to use it until you install the scripts together with the vQmod xml, ok?
Here is the extension author so you can test it:
http://www.opencart.com/index.php?route=extension/extension/info&extension_id=14760
If you find the solution please let me know.
See you,
Jose
|
|
Hi,
Here is an extension, we’ve made compatible with Shoppica, that does the same job:
http://support.themeburn.com/topic/product-price-with-options-adaptation-for-shoppica
BR,
ThemeBurn team
|
|
Woow. I’m really happy!!!
Yes it does the same. Thank you.
Nevertheless, I think the first mod uses ajax which makes it a lot prettier.
If you could give some hints I would make it work though I’m no coder.
It’s just a suggestion don’t feel forced to do it because you are obviously not.
Thanks again
Jose
-
This reply was modified 3673 days ago by Jose.
|
|
Hi Jose,
Both plugins use AJAX
There is no other way to change the price without reloading the entire page.
Best,
ThemeBurn team
|
|