[Skip to main content](#vessel-content)

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

##

- **[rasheed1011](/forum/user/31602-rasheed1011 "View rasheed1011's Profile")**
- [![rasheed1011's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31602-rasheed1011 "View rasheed1011's Profile") Topic Author
- [ Offline](/forum/user/31602-rasheed1011)

Less More

- Posts: 42
- Thank you received: 1
-
-

1 year 9 months ago [\#365731](#365731) by [rasheed1011](/forum/user/31602-rasheed1011 "View rasheed1011's Profile")  *[display a certain number of options based on the count selected for variables](/forum/26-product-category-display/909160-display-a-certain-number-of-options-based-on-the-count-selected-for-variables#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")* was created by *[rasheed1011](/forum/user/31602-rasheed1011 "View rasheed1011's Profile")*

-- 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](https://www.mailedbysanta.com/index.php/pickles/product/set-of-9)

thanks

- [ ![ScreenShot2025-02-18at12.39.26AM.png](/forum/attachment/60255) ](/forum/attachment/60255 "...12.39.26AM.png") [ ](/forum/attachment/60255?download=1 "...12.39.26AM.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDkxNjAtZGlzcGxheS1hLWNlcnRhaW4tbnVtYmVyLW9mLW9wdGlvbnMtYmFzZWQtb24tdGhlLWNvdW50LXNlbGVjdGVkLWZvci12YXJpYWJsZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

1 year 9 months ago [\#365735](#365735) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[display a certain number of options based on the count selected for variables](/forum/26-product-category-display/909160-display-a-certain-number-of-options-based-on-the-count-selected-for-variables#365735 "-- 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")*

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](https://www.hikashop.com/support/documentation/42-hikashop-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](https://www.hikashop.com/marketplace/product/148-price-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&gt;Views. There, you can add your code to tap into the custom fields to refresh the canvas.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDkxNjAtZGlzcGxheS1hLWNlcnRhaW4tbnVtYmVyLW9mLW9wdGlvbnMtYmFzZWQtb24tdGhlLWNvdW50LXNlbGVjdGVkLWZvci12YXJpYWJsZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[rasheed1011](/forum/user/31602-rasheed1011 "View rasheed1011's Profile")**
- [![rasheed1011's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31602-rasheed1011 "View rasheed1011's Profile") Topic Author
- [ Offline](/forum/user/31602-rasheed1011)

Less More

- Posts: 42
- Thank you received: 1
-
-

1 year 9 months ago [\#365750](#365750) by [rasheed1011](/forum/user/31602-rasheed1011 "View rasheed1011's Profile")  Replied by *[rasheed1011](/forum/user/31602-rasheed1011 "View rasheed1011's Profile")* on topic *[display a certain number of options based on the count selected for variables](/forum/26-product-category-display/909160-display-a-certain-number-of-options-based-on-the-count-selected-for-variables#365750 "-- 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")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDkxNjAtZGlzcGxheS1hLWNlcnRhaW4tbnVtYmVyLW9mLW9wdGlvbnMtYmFzZWQtb24tdGhlLWNvdW50LXNlbGVjdGVkLWZvci12YXJpYWJsZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[rasheed1011](/forum/user/31602-rasheed1011 "View rasheed1011's Profile")**
- [![rasheed1011's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31602-rasheed1011 "View rasheed1011's Profile") Topic Author
- [ Offline](/forum/user/31602-rasheed1011)

Less More

- Posts: 42
- Thank you received: 1
-
-

1 year 9 months ago [\#365752](#365752) by [rasheed1011](/forum/user/31602-rasheed1011 "View rasheed1011's Profile")  Replied by *[rasheed1011](/forum/user/31602-rasheed1011 "View rasheed1011's Profile")* on topic *[display a certain number of options based on the count selected for variables](/forum/26-product-category-display/909160-display-a-certain-number-of-options-based-on-the-count-selected-for-variables#365752 "-- 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")*

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](https://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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDkxNjAtZGlzcGxheS1hLWNlcnRhaW4tbnVtYmVyLW9mLW9wdGlvbnMtYmFzZWQtb24tdGhlLWNvdW50LXNlbGVjdGVkLWZvci12YXJpYWJsZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[rasheed1011](/forum/user/31602-rasheed1011 "View rasheed1011's Profile")**
- [![rasheed1011's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31602-rasheed1011 "View rasheed1011's Profile") Topic Author
- [ Offline](/forum/user/31602-rasheed1011)

Less More

- Posts: 42
- Thank you received: 1
-
-

1 year 9 months ago [\#365753](#365753) by [rasheed1011](/forum/user/31602-rasheed1011 "View rasheed1011's Profile")  Replied by *[rasheed1011](/forum/user/31602-rasheed1011 "View rasheed1011's Profile")* on topic *[display a certain number of options based on the count selected for variables](/forum/26-product-category-display/909160-display-a-certain-number-of-options-based-on-the-count-selected-for-variables#365753 "-- 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")*

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDkxNjAtZGlzcGxheS1hLWNlcnRhaW4tbnVtYmVyLW9mLW9wdGlvbnMtYmFzZWQtb24tdGhlLWNvdW50LXNlbGVjdGVkLWZvci12YXJpYWJsZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

1 year 9 months ago [\#365756](#365756) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[display a certain number of options based on the count selected for variables](/forum/26-product-category-display/909160-display-a-certain-number-of-options-based-on-the-count-selected-for-variables#365756 "-- 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")*

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&gt;Views, as I was saying), you can remove this code: Code:

$this-&gt;setLayout('show_block_img'); echo $this-&gt;loadTemplate();

And add your canvas code there instead.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDkxNjAtZGlzcGxheS1hLWNlcnRhaW4tbnVtYmVyLW9mLW9wdGlvbnMtYmFzZWQtb24tdGhlLWNvdW50LXNlbGVjdGVkLWZvci12YXJpYWJsZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.076 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
