Hi,
I have OC 3.0.2.0 and I have a product that is sold in different length. Every length as of course is own price. I created an option with different length but in the product for every length I can only give the price difference to the "basic" product. I would that there is no basic price but every length has his own full price. Is it possible? I found a module that do this (viewtopic.php?t=68083) bit is not for OC 3. Do someone know another solution or module?
Thanks
Gian Carlo
I have OC 3.0.2.0 and I have a product that is sold in different length. Every length as of course is own price. I created an option with different length but in the product for every length I can only give the price difference to the "basic" product. I would that there is no basic price but every length has his own full price. Is it possible? I found a module that do this (viewtopic.php?t=68083) bit is not for OC 3. Do someone know another solution or module?
Thanks
Gian Carlo
I have tried with this code but it doesn't seem to work
Any help?
Thanks
Gian Carlo
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<modification>
<id>Show Full Option Price</id>
<code>001</code>
<name>Show Full Option Price</name>
<version>0.5</version>
<vqmver>2.6.3</vqmver>
<file name="catalog/controller/product/product.php">
<operation info="3.x" error="skip">
<search position="after"><![CDATA[
foreach ($option['product_option_value'] as $option_value) {
]]></search>
<add><![CDATA[
if ($option_value['price_prefix'] == '-') {
$option_value['price'] = (($product_info['special'] ? ($product_info['special'] - $option_value['price']) : ($product_info['price']) - $option_value['price']));
} elseif ($option_value['price_prefix'] == '+') {
$option_value['price'] = (($product_info['special'] ? ($product_info['special'] + $option_value['price']) : ($product_info['price']) + $option_value['price']));
}
$option_value['price_prefix'] = '';
]]></add>
</operation>
</file>
</modification>
Thanks
Gian Carlo
Last edited by straightlight on Thu Mar 12, 2020 12:48 am, edited 1 time in total.
Reason: Added code tags.
Reason: Added code tags.
Well i just tried Q's code in a default clean 3020 version and it works, try this:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<modification>
<id>Show Full Option Price</id>
<version>200.1</version>
<vqmver>2.5.1</vqmver>
<author>Qphoria</author>
<file name="catalog/controller/product/product.php">
<operation info="3.x" error="log">
<search position="after"><![CDATA[
foreach ($option['product_option_value'] as $option_value) {
]]></search>
<add><![CDATA[
if ($option_value['price_prefix'] == '-') {
$option_value['price'] = (($product_info['special'] ? ($product_info['special'] - $option_value['price']) : ($product_info['price']) - $option_value['price']));
} elseif ($option_value['price_prefix'] == '+') {
$option_value['price'] = (($product_info['special'] ? ($product_info['special'] + $option_value['price']) : ($product_info['price']) + $option_value['price']));
}
$option_value['price_prefix'] = '';
]]></add>
</operation>
</file>
</modification>
Hi cyclops12,
I have tried to add your code but without success.
In your code I had to add following lines if not the editor give me an error:
I have also installed
Modification Manager 3.0.4
vqmod 2.6.3
I have no errors in the logs
But still I can't get the full price
Gian Carlo
I have tried to add your code but without success.
In your code I had to add following lines if not the editor give me an error:
Code: Select all
<code>001</code>
<name>Show Full Option Price</name>
Modification Manager 3.0.4
vqmod 2.6.3
I have no errors in the logs
But still I can't get the full price
Gian Carlo
Last edited by straightlight on Thu Mar 12, 2020 12:48 am, edited 1 time in total.
Reason: Added code tags.
Reason: Added code tags.
I am using vqmod 2.6.3, vqmod manager 3.2.0 in a fresh oc 3.0.2.0
Attached is the vqmod from Qphoria which works for me.
Unless you have another mod/extension that is interfering with the code then i cant see why it doesnt work for you
Attached is the vqmod from Qphoria which works for me.
Unless you have another mod/extension that is interfering with the code then i cant see why it doesnt work for you
Who is online
Users browsing this forum: No registered users and 38 guests