- Posts: 21
- Thank you received: 0
Category / Product listing + one add to cart butto
-- Joomla version -- : 3.4.8
How to implement this?
Default views does not allow this.
This is probably a must feature for any B2B ecommerce components and order forms as add to cart buttons takes too much time for customers when listings are 100+ items.
Please Log in or Create an account to join the conversation.
You say that default views do not allow this, but they do. You just need to change the "Display the quantity field on the product page" setting to "Global on listings" in the HikaShop configuration.
Please Log in or Create an account to join the conversation.
this works, but it seems to be global on all products/category listings, not just a specific one for instance. We are trying to do B2B order form within B2C website (separated by user rights).
So, for B2C it must exist as is, only B2B specifical one needs to have one add to cart only.
Is there any possible solution? (dont want to have separated websites)
Please Log in or Create an account to join the conversation.
Well, you can force that option based on the category you're on with a small code addition.
Edit the file "listing" of the view "product" via the menu Display>Views and add such code at the top:
Please Log in or Create an account to join the conversation.
this puts add to cart button only to each product.
The idea is:
Product Quantity
prod1 qty1
prod2 qty2
... ...
prodN qtyN
and at the end of order form
ADD TO CART (button only)
How we can do this?
THX
GG
Please Log in or Create an account to join the conversation.
BTW how can I change the size of the pics only on that specific product list (table not div)? Basically I'd like to have them resized by hika to save on loading times and to leave any other size intact.
THX
Please Log in or Create an account to join the conversation.
Try like that then:
To change the size of thumbnails only for one menu item, go in the menu manager of Joomla, edit your menu item, and in the "product options" tab, fill in the size you want for the images in the corresponding fields.
Please Log in or Create an account to join the conversation.
yes it's working now as expected, thx! I saw that setting for DIV list regarding image is valid for TABLE too.
Maybe one thing, add to cart button has also qty field displayed (with value 1), it is actually not needed, can this be removed?
Also there is one notice (I have turned errors on)
Notice: Trying to get property of non-object in /home/.../components/com_hikashop/views/product/tmpl/quantity.php on line 62
Can this be of any problem (it is only notice).
THX
Please Log in or Create an account to join the conversation.
if I have structure
Main Category
Subcategory1 -> Products 1,2,3...
Subcategory2 -> Products 1,2,3...
...
SubcategoryN -> Products 1,2,3...
and I want to have product listing on main category (to have product grouped on the listing), it will show add to cart after each subcategory.
Is there a way to have only one add to cart button on the end of the listing?
THX
Please Log in or Create an account to join the conversation.
Can you give a link to the page where there is a the quantity field that you don't want ?
The notice can be ignored.
Please Log in or Create an account to join the conversation.
Please grant the access to give us backend access.
That way we will be able to see how you setup the menu and debug that issue.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
As you added a specific condition in the view "product / show_tabular" it was forcing a configuration.
But this configuration is applied only on the current view, and that's why you were not having the desired layout.
So I edited the view "product / show_quantity" to apply a specific rule based on the menu id.
We will check to improve that part on our side.
Please Log in or Create an account to join the conversation.
What is NOT correct is, as already explained above, is add to cart button after each (sub)category.
We want only 1 (one) add to cart button at the bootom of product list eg...
Category Products 1
Category Products 2
....
Category Products N
ADD TO CART
Thank you
Please Log in or Create an account to join the conversation.
This is not possible by default as every products of a category are in a form, so there is as many forms as categories listed and the "add to cart" button needs to be present in each form.
It will require code editions to have what you are looking for.
Please Log in or Create an account to join the conversation.
Thank you!
Please Log in or Create an account to join the conversation.
You can edit the file "listing" of the view "product" in order to change that. If you're a developer it shouldn't be a problem.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
We even provide some code modifications when it's only one or two lines to modify.
However, user support is not about spending a few hours developing and testing something for someone. That's custom development. If you're not a developer yourself, you can contact our partners:
www.hikashop.com/home/our-partners.html
They will be able to implement such modification for you with the hints we gave you.
I hope you can understand our point of view.
Please Log in or Create an account to join the conversation.