display a certain number of options based on the count selected for variables

  • Posts: 35
  • Thank you received: 0
  • Hikashop Business
3 days 5 hours ago #365731

-- HikaShop version -- : 5.1.3
-- Joomla version -- : 5.2.3
-- PHP version -- : 8.3.16
-- Browser(s) name and version -- : google chrome

Hi,

I want to display only certain number of products to customer to select from based on the count selected from list of variables. How can I achieve it.

Also I want user to be able to select shape along with ability to upload pic and text for each product and all these should be listed beside each product in cart and recorded in order so that the product can be customized accordingly.

If possible can i add canvas to each product where the uploaded pic and text can updated on the products to view live?

www.mailedbysanta.com/index.php/pickles/product/set-of-9

thanks

Attachments:

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

  • Posts: 83296
  • Thank you received: 13466
  • MODERATOR
3 days 1 hour ago #365735

Hi,

To be able to have an upload area, and a text area, you'll want to use custom fields of the table "item":
www.hikashop.com/support/documentation/4...shop-field-form.html
If you need to have extra fields appear based on other fields, you can use their "display limited to" setting to do that.
You won't be able to do that with characteristics / options like you've setup your product at the moment.
The drawback of custom fields is that you can't change the price of the product based on the fields. However, we developed a plugin called "price calculations" which can calculate the price of the product based on custom fields:
www.hikashop.com/marketplace/product/148...ce-calculations.html
So, with custom item fields and this plugin, you should be able to do what you want.

If you need to add a canvas to the product page with custom javascript to taken into account the data in the custom fields to display a preview, that's possible. You'll want to edit the view file show_default via the menu Display>Views. There, you can add your code to tap into the custom fields to refresh the canvas.

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

  • Posts: 35
  • Thank you received: 0
  • Hikashop Business
2 days 9 hours ago #365750

Thanks for helping in adding custom fields to product page.

I am working on setting the options based on field selected

I need help in adding canvas in the product page. I need to replace the product image with canvas and canvas should display the product which should get updated once the image is uploaded and text updated by customer. Also the user should be able to change the color of text and able to adjust the uploaded image on the product

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

  • Posts: 35
  • Thank you received: 0
  • Hikashop Business
2 days 7 hours ago #365752

i have set a custom field on the product page. Now based on the number selected, I want to display that many products on the page. below is the url for the same.

www.mailedbysanta.com/index.php/pickles/product/set-of-9

for example if i select 5 in the dropbox for Number of pieces... how can i load 5 products into the page?

and i want to remove the quantity box for add to cart.

regards
Abdul rasheed Mohammed

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

  • Posts: 35
  • Thank you received: 0
  • Hikashop Business
2 days 7 hours ago #365753

I was able to remove the quantity above add to cart button

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

  • Posts: 83296
  • Thank you received: 13466
  • MODERATOR
2 days 3 hours ago #365756

Hi,

You can't "load 5 products into the page".
However, if you want to have extra input fields based on what is select in a field, you can use the "display limited to" setting of your custom fields.
So, now that you've created a custom field to select the number of pieces, you can create another field, and in that new field, you can use the "display limited to" setting to restrict its display based on the value selected in the first custom field.
This way, you can chain custom fields and provide several sets of custom fields if necessary.

Then, if you want the price to vary based on the custom fields, you want to use the price calculations plugin, as I was saying.

And regarding the canvas, if you want it to replace the image area, then in the show_default view file (via the menu Display>Views, as I was saying), you can remove this code:

	$this->setLayout('show_block_img');
	echo $this->loadTemplate();
And add your canvas code there instead.

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

Time to create page: 0.064 seconds
Powered by Kunena Forum