- Posts: 42
- Thank you received: 0
Retail Price for each size
10 years 9 months ago #224192
by hexcodc
Retail Price for each size was created by hexcodc
-- HikaShop version -- : 2.6.0 Business
-- Joomla version -- : 3.4.5
-- PHP version -- : 5.5.30
Hi
I have a question regarding retail price. It shows at the main product page but there is no retail price i can set for the variant. For example, I have different sizes of 50ml, 100ml and 200ml but how can i set the retail price for each size? It doesn't make sense that the same retail price shows up for each size.
-- Joomla version -- : 3.4.5
-- PHP version -- : 5.5.30
Hi
I have a question regarding retail price. It shows at the main product page but there is no retail price i can set for the variant. For example, I have different sizes of 50ml, 100ml and 200ml but how can i set the retail price for each size? It doesn't make sense that the same retail price shows up for each size.
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 12953
- Thank you received: 1778
10 years 9 months ago #224215
by Mohamed Thelji
Replied by Mohamed Thelji on topic Retail Price for each size
Hello,
Note that you can always set a different retail price for each variants of your product through the "Variants" tab of your product page. You'll just have to use the "Retail price" option of your product variant configuration page.
Note that you can always set a different retail price for each variants of your product through the "Variants" tab of your product page. You'll just have to use the "Retail price" option of your product variant configuration page.
Please Log in or Create an account to join the conversation.
10 years 9 months ago #224438
by hexcodc
Replied by hexcodc on topic Retail Price for each size
Hi
Thank you for your reply. Can you show me "Retail price" option of your product variant configuration page, i don't think i see it and i have attached the print screen.
Thank you
Gary
Thank you for your reply. Can you show me "Retail price" option of your product variant configuration page, i don't think i see it and i have attached the print screen.
Thank you
Gary
Please Log in or Create an account to join the conversation.
10 years 9 months ago #224458
by Xavier
Replied by Xavier on topic Retail Price for each size
Hi,
Please edit the file "product / form" in the backend template and replace the code:
By:
That way you will be able to set a retail price on the variants too, we will correct it on our end too.
Please edit the file "product / form" in the backend template and replace the code:
Code:
if(@$this->product->product_type != 'variant') {
$curr = '';
$mainCurr = $this->currencyClass->getCurrencies($this->main_currency_id, $curr);
?>
<dt class="hikashop_product_msrp"><label for="data_product__product_msrp"><?php echo JText::_('PRODUCT_MSRP'); ?></label></dt>
<dd class="hikashop_product_msrp">
<input type="text" id="data_product__product_msrp" name="data[product][product_msrp]" value="<?php echo $this->escape(@$this->product->product_msrp); ?>"/> <?php echo $mainCurr[$this->main_currency_id]->currency_symbol.' '.$mainCurr[$this->main_currency_id]->currency_code;?>
</dd>
<?php
}
?>
Code:
$curr = '';
$mainCurr = $this->currencyClass->getCurrencies($this->main_currency_id, $curr);
?>
<dt class="hikashop_product_msrp"><label for="data_product__product_msrp"><?php echo JText::_('PRODUCT_MSRP'); ?></label></dt>
<dd class="hikashop_product_msrp">
<input type="text" id="data_product__product_msrp" name="data[product][product_msrp]" value="<?php echo $this->escape(@$this->product->product_msrp); ?>"/> <?php echo $mainCurr[$this->main_currency_id]->currency_symbol.' '.$mainCurr[$this->main_currency_id]->currency_code;?>
</dd>
That way you will be able to set a retail price on the variants too, we will correct it on our end too.
Please Log in or Create an account to join the conversation.
10 years 9 months ago #224521
by hexcodc
Replied by hexcodc on topic Retail Price for each size
Hi,
Thank you, unfortunately, after i applied the code, it doesn't seem to change anything and the retail price option is still missing in the variant page. Any idea? is the "product / form" in the backend template the correct file to change?
Gary
Thank you, unfortunately, after i applied the code, it doesn't seem to change anything and the retail price option is still missing in the variant page. Any idea? is the "product / form" in the backend template the correct file to change?
Gary
Please Log in or Create an account to join the conversation.
10 years 9 months ago #224549
by Xavier
Replied by Xavier on topic Retail Price for each size
Hi,
Yes it is the correct file to change on Joomla 3 and HikaShop 2.6.0, are you sure that you made the modification in the correct template ? How have you done the modification, via an override ?
Sorry, I forgot to give you a link to the documentation for the overrides:
www.hikashop.com/support/documentation/1...ize-the-display.html
Yes it is the correct file to change on Joomla 3 and HikaShop 2.6.0, are you sure that you made the modification in the correct template ? How have you done the modification, via an override ?
Sorry, I forgot to give you a link to the documentation for the overrides:
www.hikashop.com/support/documentation/1...ize-the-display.html
Please Log in or Create an account to join the conversation.
10 years 9 months ago #224609
by hexcodc
Replied by hexcodc on topic Retail Price for each size
HI,
I tried different ways, I went to change the file product/form.php using the correct isis template (see attached), nothing change, I tried overriding the form.php via ftp, no change happened. is there something wrong?
Gary
I tried different ways, I went to change the file product/form.php using the correct isis template (see attached), nothing change, I tried overriding the form.php via ftp, no change happened. is there something wrong?
Gary
Please Log in or Create an account to join the conversation.
10 years 9 months ago #224684
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Retail Price for each size
Hi,
Unfortunately, the patch that Xavier gave you is not the right one.
Please edit the view "product / variant" and replace
By
And you should also update the product class "administrator/components/com_hikashop/classes/product.php" and replace
By
And then you should be able to edit the retail price on the variants.
Regards,
Unfortunately, the patch that Xavier gave you is not the right one.
Please edit the view "product / variant" and replace
Code:
<?php if(hikashop_acl('product/variant/price')) { ?>
Code:
<?php
$curr = '';
$mainCurr = $this->currencyClass->getCurrencies($this->main_currency_id, $curr);
?>
<dt class="hikashop_product_msrp"><label for="data_variant__product_msrp"><?php echo JText::_('PRODUCT_MSRP'); ?></label></dt>
<dd class="hikashop_product_msrp">
<input type="text" id="data_variant__product_msrp" name="data[variant][product_msrp]" value="<?php echo $this->escape(@$this->product->product_msrp); ?>"/> <?php echo $mainCurr[$this->main_currency_id]->currency_symbol.' '.$mainCurr[$this->main_currency_id]->currency_code;?>
</dd>
<?php if(hikashop_acl('product/variant/price')) { ?>
And you should also update the product class "administrator/components/com_hikashop/classes/product.php" and replace
Code:
'manufacturer_id', 'page_title', 'url', 'meta_description', 'keywords', 'alias', 'msrp', 'canonical',
Code:
$removeFields = array(
'manufacturer_id', 'page_title', 'url', 'meta_description', 'keywords', 'alias', 'canonical',
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
The following user(s) said Thank You: hexcodc
Please Log in or Create an account to join the conversation.
Time to create page: 0.234 seconds