Trying to Remove "Price With Tax" on New Product

  • Posts: 61
  • Thank you received: 2
10 years 9 months ago #113122

As the title says, trying to remove "Price With Tax" on the New Product Upload Form.

Last edit: 10 years 9 months ago by xsbucks.

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

  • Posts: 26004
  • Thank you received: 4004
  • MODERATOR
10 years 9 months ago #113155

Hi,

For the moment there is no such option to remove the column but it's a good idea that I put in my TODO list.
You can remove the column by editing the view "productmarket | form_price".

You will have to remove

			<th class="title"><?php
				echo JText::_('PRICE_WITH_TAX');
			?></th>
Replace
			<td class="hikam_price">
				<input type="hidden" name="price[<?php echo $i;?>][price_id]" value="<?php echo @$price->price_id;?>" />
				<input size="10" type="text" id="hikamarket_price_<?php echo $i;?>_price" name="price[<?php echo $i;?>][price_value]" value="<?php echo @$price->price_value; ?>" onchange="window.productMgr.updatePrice(<?php echo $i; ?>, false)" />
			</td>
			<td class="hikam_price">
				<input size="10" type="text" id="hikamarket_price_<?php echo $i;?>_with_tax" name="price_with_tax_<?php echo $i;?>" value="<?php echo @$price->price_value_with_tax; ?>" onchange="window.productMgr.updatePrice(<?php echo $i; ?>, true)"/>
			</td>
By:
			<td class="hikam_price">
				<input type="hidden" name="price[<?php echo $i;?>][price_id]" value="<?php echo @$price->price_id;?>" />
				<input size="10" type="text" id="hikamarket_price_<?php echo $i;?>_price" name="price[<?php echo $i;?>][price_value]" value="<?php echo @$price->price_value; ?>" />
			</td>
And also replace:
			<td class="hikam_price">
				<input type="hidden" name="price[{id}][price_id]" value="" />
				<input size="10" type="text" id="hikamarket_price_{id}_price" name="price[{id}][price_value]" value="" onchange="window.productMgr.updatePrice({id}, false)" />
			</td>
			<td class="hikam_price"><input size="10" type="text" id="hikamarket_price_{id}_with_tax" value="" onchange="window.productMgr.updatePrice({id}, false)"/></td>
By:
			<td class="hikam_price">
				<input type="hidden" name="price[{id}][price_id]" value="" />
				<input size="10" type="text" id="hikamarket_price_{id}_price" name="price[{id}][price_value]" value="" />
			</td>

Best 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: xsbucks

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

  • Posts: 61
  • Thank you received: 2
10 years 9 months ago #115136

This didn't affect the product upload page at all.

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

  • Posts: 26004
  • Thank you received: 4004
  • MODERATOR
10 years 9 months ago #115137

Hi,

Are you sure you have edited the view for the right front-end template ?

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.

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

  • Posts: 61
  • Thank you received: 2
10 years 9 months ago #115138

I'm an idiot, I didn't see that all the templates were part of the view flow. I am assuming i change it in the assigned template?

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

  • Posts: 61
  • Thank you received: 2
10 years 9 months ago #115140

Got It , Thanks Jerome.

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

Moderators: Obsidev
Time to create page: 0.057 seconds
Powered by Kunena Forum