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

#   Question on modification

##

- **[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")**
- [![neo191987's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar35364.jpg)](/forum/user/35364-neo191987 "View neo191987's Profile") Topic Author
- [ Offline](/forum/user/35364-neo191987)

Less More

- Posts: 431
- Thank you received: 19
-
-

8 years 9 months ago -  8 years 9 months ago [\#285957](#285957) by [neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")  *[Question on modification](/forum/2-general-talk-about-hikashop/893476-question-on-modification#285957 "Hi, I made a lot of modifications and removed the excess code, but I want to ask some things that I do not know what they do and if they are needed in my case.  Can you tell me what this code is used for?  and I know that this code is used by the cart, but do I need if, I use List view for characteristics ?  In view tabular I left only the code for the title, characteristics and vote. After all the modifications, there are no problems and errors in the product page and in the cart and wishlist but I still ask. :)")* was created by *[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")*

Hi, I made a lot of modifications and removed the excess code, but I want to ask some things that I do not know what they do and if they are needed in my case.

Can you tell me what this code is used for?
Code:

&lt;span id="hikashop_product_id_main" class="hikashop_product_id_main"&gt; &lt;input type="hidden" name="product_id" value="&lt;?php echo $this-&gt;element-&gt;product_id; ?&gt;" /&gt; &lt;/span&gt;

and I know that this code is used by the cart, but do I need if, I use List view for characteristics ?
Code:

&lt;input type="hidden" name="cart_type" id="type" value="cart"/&gt; &lt;input type="hidden" name="add" value="1"/&gt; &lt;input type="hidden" name="ctrl" value="product"/&gt; &lt;input type="hidden" name="task" value="updatecart"/&gt; &lt;input type="hidden" name="return_url" value="&lt;?php echo urlencode(base64_encode(urldecode($this-&gt;redirect_url)));?&gt;"/&gt;

In view tabular I left only the code for the title, characteristics and vote.
After all the modifications, there are no problems and errors in the product page and in the cart and wishlist but I still ask. ![:)](/media/kunena/emoticons/3.png ":)")

Last edit: 8 years 9 months ago by [neo191987](/forum/user/35364-neo191987 "View neo191987's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg5MzQ3Ni1xdWVzdGlvbi1vbi1tb2RpZmljYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

8 years 9 months ago [\#285959](#285959) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Question on modification](/forum/2-general-talk-about-hikashop/893476-question-on-modification#285959 "Hi, I made a lot of modifications and removed the excess code, but I want to ask some things that I do not know what they do and if they are needed in my case.  Can you tell me what this code is used for?  and I know that this code is used by the cart, but do I need if, I use List view for characteristics ?  In view tabular I left only the code for the title, characteristics and vote. After all the modifications, there are no problems and errors in the product page and in the cart and wishlist but I still ask. :)")*

Hello,

1 - It's use to know what is the product_id when you submit the product form.
And the span content can be modified when you're using variants in a non-listing mode.

2 - These are used by the add to cart for the global product page.
Even if you have variants in the listing mode ; you might have some products without variants.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg5MzQ3Ni1xdWVzdGlvbi1vbi1tb2RpZmljYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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.046 seconds

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