Retail Price for each size

  • Posts: 42
  • Thank you received: 0
9 years 9 months ago #224192

-- 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.

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
9 years 9 months ago #224215

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.

Please Log in or Create an account to join the conversation.

  • Posts: 42
  • Thank you received: 0
9 years 9 months ago #224438

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

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
9 years 8 months ago #224458

Hi,

Please edit the file "product / form" in the backend template and replace the 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
		}
?>
By:
		$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.

  • Posts: 42
  • Thank you received: 0
9 years 8 months ago #224521

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

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
9 years 8 months ago #224549

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

Please Log in or Create an account to join the conversation.

  • Posts: 42
  • Thank you received: 0
9 years 8 months ago #224609

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

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 26274
  • Thank you received: 4045
  • MODERATOR
9 years 8 months ago #224684

Hi,

Unfortunately, the patch that Xavier gave you is not the right one.

Please edit the view "product / variant" and replace

<?php if(hikashop_acl('product/variant/price')) { ?>
By
<?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
	'manufacturer_id', 'page_title', 'url', 'meta_description', 'keywords', 'alias', 'msrp', 'canonical',
By
$removeFields = array(
	'manufacturer_id', 'page_title', 'url', 'meta_description', 'keywords', 'alias', 'canonical',
And then you should be able to edit the retail price on the variants.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: hexcodc

Please Log in or Create an account to join the conversation.

Time to create page: 0.062 seconds
Powered by Kunena Forum