Waitlists and Variants

  • Posts: 250
  • Thank you received: 7
8 years 9 months ago #228871

-- url of the page with the problem -- : www.artistpapers.co.uk
-- HikaShop version -- : 2.6.1
-- Joomla version -- : 3.4.8

Hi

The wait list function is potentially very useful but it doesn't list the SKU of the product, so if you have a product with a lot of variants that aren't stocked you have no way of knowing which one has been requested.

So ...can the wait list include the SKU please?

Thanks,

Ian

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
8 years 9 months ago #228879

Hi,

Like anywhere else in HikaShop, the waitlist system will append the characteristics values of the selected variant to the product name. So you should get the product name + the selected characteristic values on the notification email and the waitlist listing in the backend.
So the SKU shouldn't be needed. But maybe I'm missing something ? Where do you want to add the SKU ? Don't you see the selected characteristics values ?

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

  • Posts: 250
  • Thank you received: 7
8 years 9 months ago #228953

Hi Nicolas,

This is what I see from an admin point of view ...



The purpose of this screen surely is to tell the administrator what products to order, but all I've got is the parent product name and the product id, the product id means nothing outside of Hikashop, I need the product sku to order stock.

Thanks,

Ian

Attachments:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
8 years 9 months ago #228989

Hi,

Ah yes, on the waitlist edition screen, you get the main product name because the interface to select products doesn't handle variants. But if you stay on the listing, you should see the full product name.
Add the code:

<?php if($this->element->product_type=="variant"){
					echo $this->element->product_name;
				} ?>
before the code:
<?php
					echo  $this->nameboxType->display(
						'data[waitlist][product_id]',
						@$this->element->product_id,
in the file "form" of the view "waitlist" for your backend template via the menu Display>Views and that will add the full name of the variant there when the selected element is a variant.

The following user(s) said Thank You: iedwards

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

  • Posts: 250
  • Thank you received: 7
8 years 9 months ago #229049

Hi Nicolas,

It was product_code I needed but that's pointed me in the right direction and I have that working now.

For the benifit of anybody with the same requirement I've also added the sku to the waitlist listing view so

<?php echo $row->product_name; ?>
becomes
<?php echo $row->product_code . " " . $row->product_name; ?>

Many thanks,

Ian

Last edit: 8 years 9 months ago by iedwards. Reason: added listing view mod

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

Time to create page: 0.060 seconds
Powered by Kunena Forum