change cart in product page

  • Posts: 10
  • Thank you received: 0
10 years 3 months ago #163316

hi,

i need to change cart bottom in product page, just there are 1 table with 2 tr and both are 3 td and 1 td.

i need to do that in screenshot.. how can i do?

thank you in advance

Attachments:

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

  • Posts: 12953
  • Thank you received: 1778
10 years 3 months ago #163356

Hello,
Using some CSS code will probably do the job : www.hikashop.com/support/documentation/1...the-display.html#css

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

  • Posts: 10
  • Thank you received: 0
10 years 3 months ago #163377

hi,

i tried with css, but i would to chenge: quantity.php, and show_quantity.php pages just i can't...

beacause if i change some code, quantity filed not functioning !

how can i do?
thank you again

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

  • Posts: 13201
  • Thank you received: 2322
10 years 3 months ago #163386

Hi,

Thanks to create a new file in "templates/YOUR_TEMPLATE/html/com_hikshop/product/show_quantity_custom.php", put the code:

<?php
$i =$this->params->get('i');
$min_quantity =$this->params->get('min_quantity');
$max_quantity =$this->params->get('max_quantity');
$html =$this->params->get('html');
?>
<table>
	<tr>
		<td class="cust_qty">
			<input id="hikashop_product_quantity_field_<?php echo $i; ?>" type="text" value="<?php echo JRequest::getInt('quantity',$min_quantity); ?>" class="hikashop_product_quantity_field" name="quantity" onchange="hikashopCheckQuantityChange('hikashop_product_quantity_field_<?php echo $i; ?>',<?php echo $max_quantity; ?>,<?php echo $min_quantity; ?>);" />
		</td>
		<td class="cust_plus">

			<a id="hikashop_product_quantity_field_change_plus_<?php echo $i; ?>" class="hikashop_product_quantity_field_change_plus hikashop_product_quantity_field_change" href="#" onclick="return hikashopQuantityChange('hikashop_product_quantity_field_<?php echo $i; ?>',1,<?php echo $max_quantity; ?>,<?php echo $min_quantity; ?>);">+</a>
		</td>
		<td class="cust_minus">
			<a id="hikashop_product_quantity_field_change_minus_<?php echo $i; ?>" class="hikashop_product_quantity_field_change_minus hikashop_product_quantity_field_change" href="#" onclick="return hikashopQuantityChange('hikashop_product_quantity_field_<?php echo $i; ?>',0,<?php echo $max_quantity; ?>,<?php echo $min_quantity; ?>);">&ndash;</a>
		</td>
	</tr>
	<tr>
		<td colspan="3"  class="cust_button">
			<?php echo $html; ?>
		</td>
	</tr>
</table>
inside and then in the HikaShop option "Quantity layout on product page" in Configuration > Display > Products, select the value "show_quantity_custom", this way you will have the desired layout, then you just have to customize it with some css properties.

The following user(s) said Thank You: andradeq

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

  • Posts: 10
  • Thank you received: 0
10 years 3 months ago #164352

hi,

thank you very very much!!!
i resolved it!

just one more question...
in every page is right, but in product page it is wrong like screenshot.
there's a way to resolve with php?

thank you very mouch one more time!!!

Attachments:

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

  • Posts: 10
  • Thank you received: 0
10 years 3 months ago #164398

hi,

i'have done!! thank you very much!!!

just one problem with social plugin.
i enabled it, and in firefox not showing notihig, in safari yes.. like screenshot.

whay it is happening? and what can i do to solve it?

thank you again

Attachments:

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

  • Posts: 82726
  • Thank you received: 13342
  • MODERATOR
10 years 3 months ago #164432

Hi,

Could you provide a link to the page so that we can see that ?

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

Time to create page: 0.082 seconds
Powered by Kunena Forum