Checkout - keep qty static and remove refresh?

  • Posts: 105
  • Thank you received: 9
7 years 5 months ago #271661

-- url of the page with the problem -- : tompkinshsptsa.org/hikashop-menu-for-hik...out/task-step/step-2
-- HikaShop version -- : 3.1.1
-- Joomla version -- : 3.7.2
-- PHP version -- : 2.6

Just updated to the most recent version. Looks great!

On checkout, I'd like to remove the refresh button, and keep the delete button. I'd also like to have the qty be visible but the user not be able to change it. Can you provide guidance on how to do?

Also - both the refresh and delete are on separate lines below the quantity. How can I fix?

Thanks.

Attachments:
Last edit: 7 years 5 months ago by mduda.

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
7 years 5 months ago #271665

Hi,

You can disable the quantity field by adding such CSS:
#hikashop_checkout_cart .hikashop_product_quantity_field { pointer-events: none; }
You can remove the refresh by adding such CSS:
.hikashop_cart_product_quantity_refresh{ display: none; }
You can inline the delete by adding such CSS:
.hikashop_cart_product_quantity_delete{ display:inline-block; }

www.hikashop.com/support/documentation/1...ize-the-display.html

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

  • Posts: 105
  • Thank you received: 9
7 years 5 months ago #272029

Thanks Nicolas!

I was able to adjust the refresh and delete buttons. Does the quantity field need to be edited in a view? Or is this something I should be able to do in the css file?

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
7 years 5 months ago #272051

Hi,

The solution I provided for the quantity field is a piece of CSS code, so it needs to be added in a CSS file, like the other CSS code I gave.

The following user(s) said Thank You: mduda

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

  • Posts: 105
  • Thank you received: 9
7 years 5 months ago #272084

Thanks! Modified id, and it works. Perfect! Thank you!

/*custom css to make qty on checkout page step 2 static*/
#hikashop_checkout_cart_2_0 .hikashop_product_quantity_field { pointer-events: none; }

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

Time to create page: 0.045 seconds
Powered by Kunena Forum