Quantity field on table view

  • Posts: 595
  • Thank you received: 23
  • Hikaserial Subscription Hikashop Multisite
8 years 7 months ago #253526

-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.6.4
-- PHP version -- : 7.0
-- Browser(s) name and version -- : Chrome 54.0.2840.71 m (64-bit)

Hi Team,

I want to have the quantity field into the table view. But this is only possible when I turn on the Add to cart button.

But I only want to see the quantity field not the add to cart button. Is this possible?




Kind regards,
Lumiga
Attachments:
Last edit: 8 years 4 months ago by Lumiga. Reason: delete super admin account

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

  • Posts: 83992
  • Thank you received: 13604
  • MODERATOR
8 years 7 months ago #253547

Hi,

In that case, you want to change the "Display the quantity field on the product page" setting to "global on listing" in the HikaShop configuration.

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

  • Posts: 595
  • Thank you received: 23
  • Hikaserial Subscription Hikashop Multisite
8 years 7 months ago #254182

Hi, sorry for my late response, but I didn't get any e-mail from your replay.

But anyway if I set "Display the quantity field on the product page" setting to "global on listing" in the HikaShop configuration. It looks perfect but it also delete the quantity field on the product-page and that is no what we want. Is there any solution for?


Kind regards,
Lumiga
Attachments:

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

  • Posts: 83992
  • Thank you received: 13604
  • MODERATOR
8 years 7 months ago #254192

Hi,

In the "show" file of the view "product", add the code below at the top:

<?php $this->config->set('product_display_quantity_field',1); ?>

The following user(s) said Thank You: Lumiga

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

  • Posts: 595
  • Thank you received: 23
  • Hikaserial Subscription Hikashop Multisite
8 years 6 months ago #257958

Hi Nicolas,

Sorry for my late response.

I add the code to the "show" file of the view "product" but nothing happens.
I cleared the cache but still no quantity filed on the product page.

I put the code over here.



But still no quantity field.



Kind regards,
Lumiga


Kind regards,
Lumiga
Attachments:

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

  • Posts: 83992
  • Thank you received: 13604
  • MODERATOR
8 years 5 months ago #258002

Hi,

Are you sure you're editing the view file for the correct template ?

Otherwise, try to add the code:
<?php $this->params->set('show_quantity_field', 1); ?>
in the file "quantity" of the view "product".

The following user(s) said Thank You: Lumiga

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

  • Posts: 595
  • Thank you received: 23
  • Hikaserial Subscription Hikashop Multisite
8 years 5 months ago #258004

I replaced the code and it works fine now.

But I realise this is not what we need. We need only to display the stock on the list view.

I'll make a new ticket for that. Because this one is solved. ;-)

Thanks!


Kind regards,
Lumiga

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

  • Posts: 12953
  • Thank you received: 1778
8 years 5 months ago #258009

Hello,

Then you'll probably find a solution through that thread :
www.hikashop.com/forum/2-general-talk-ab...duct-list.html#84404

Best regards,
Mohamed Thelji.

The following user(s) said Thank You: Lumiga

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

  • Posts: 42
  • Thank you received: 2
8 years 3 months ago #262973

I've been struggling with this same issue (and a few others related to some previous customization) since upgrading from Business 2.6.1 last night. The code overrides detailed in this thread are not currently working for me, but it seems odd that they should be needed. I would expect that the "Show Quantity" configuration should apply regardless of the layout style chosen. It's also puzzling that the ability to input a quantity changes with the One Per Line-vs-Global Add To Cart config option. Am I missing something? (I usually am...)



Matt


It's amazing how the omission of a semicolon can absolutely ruin an otherwise pleasant evening.
Attachments:
Last edit: 8 years 3 months ago by spoonbow.

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

  • Posts: 26253
  • Thank you received: 4040
  • MODERATOR
8 years 3 months ago #262993

Hi,

That thread is related to the HikaShop 2.6 and I suppose that you're using HikaShop 3.0 ; which have a refactoring of the cart and checkout system.
And the configuration setting also changed between 2.6.x and 3.0 :
www.hikashop.com/support/documentation/5...html#display_product

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: 42
  • Thank you received: 2
8 years 3 months ago #263051

Thanks Jerome. I'll start a new topic with all details.

Matt


It's amazing how the omission of a semicolon can absolutely ruin an otherwise pleasant evening.

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

Time to create page: 0.171 seconds
Powered by Kunena Forum