Creating a client product list

  • Posts: 226
  • Thank you received: 18
  • Hikashop Business
7 years 8 months ago #182052

-- HikaShop version -- : 2.3.4

I'm looking for a way to store a permanent product shortlist list for repeat clients, with the added complication of having a list for each employee. The idea is that the employer can login and select items needed for individual employees. This is for a clothing store where an employer wants to be able to reorder a uniform for an employee from a link to the products with *size and other variables already selected. eg. Ideally the customer would log in, see a list of employees (categories?), select an employee and have available a list of products with ONLY that employees size available and already selected.

One option would be to create a category for each employee and add the products required for that employee to their category. The stumbling block is, how do we list the product only in the size relevant for that employee?

*The site is integrated with the clients stock control ERP system so we can't duplicate products

Any suggestions?

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

  • Posts: 13201
  • Thank you received: 2320
  • Hikashop Business
7 years 8 months ago #182075

Hi,

All the variants have a unique ID, so what can potentially be done is create a Joomla article, in this article add products thanks to the "product" button under the text editor (you need to enable the plugins "HikaShop product insert" and "HikaShop product tag").

In the popup select the main product, and the elements to display, then click on insert.
You should now see a tag, replace the id of the product by the id of the variant, you can find this id when clicking on "Manage variants" in the product edition page.

This way, you can have one article per employee which will listall the products with the corect size etc for this employee.

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

  • Posts: 226
  • Thank you received: 18
  • Hikashop Business
7 years 8 months ago #182227

Thanks Xavier, that scenario would be great if it worked.

Only a parent product will display from the plugin. If I add the id of a variant nothing will display.

Last edit: 7 years 8 months ago by rodfarrell.

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

  • Posts: 13201
  • Thank you received: 2320
  • Hikashop Business
7 years 8 months ago #182345

Hi,

You can potentially edit the plugin file "plugins/hikashopproductinsert/hikashopproductinsert.php" and in the function "onAfterRender()" remove:

AND product_type=\'main\'
in the first MySQL request and set
$products[$k]->has_options = true;
to "false", this way it should display the variant directly.

We will have a look to improve that plugin in order to manage the variants too.

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

  • Posts: 226
  • Thank you received: 18
  • Hikashop Business
7 years 8 months ago #182609

That's getting a bit closer. I am now getting an "add to wishlist" button instead of an add to cart where the product is a variant. Also, the parent images etc are not available for variants in the inserted product view. Any suggestions?

Last edit: 7 years 8 months ago by rodfarrell.

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

  • Posts: 12953
  • Thank you received: 1775
7 years 7 months ago #182669

Hello,

I am now getting an "add to wishlist" button instead of an add to cart where the product is a variant

You should have an "add to cart" button, so can you check that your variant is in stock ?

Also, the parent images etc are not available for variants

Yes, that's the problem with the solution that Xavier gave you, it will require more than this to display every information related to your variant.
To display your variant name the solution will be to directly write it on your Joomla article
To display your variant image the solution will be to directly add an image through your variant configuration page.

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

Time to create page: 0.081 seconds
Powered by Kunena Forum