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

#   uploaded pic not uploading in canvas on product listing page

##

- **[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 [\#365880](#365880) by [rasheed1011](/forum/user/31602-rasheed1011 "View rasheed1011's Profile")  *[uploaded pic not uploading in canvas on product listing page](/forum/26-product-category-display/909197-uploaded-pic-not-uploading-in-canvas-on-product-listing-page#365880 "-- HikaShop version -- : 5.1.5 -- Joomla version -- : 5.2.3 -- PHP version -- : 8.3.16 -- Browser(s) name and version -- : chrome  I have a custom field of ajax&#95;img type labelled as &quot;Picture&#95;Upload&quot; to upload a picture on product listing page. I have replaced the product image with a canvas to display the uploaded picture so that customer can customize the image but the uploaded picture is not getting displayed in canvas at all.  Also have can i access this custom field in code? {$product-&gt;Picture&#95;upload} something like this?  Please help.")* was created by *[rasheed1011](/forum/user/31602-rasheed1011 "View rasheed1011's Profile")*

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

I have a custom field of ajax_img type labelled as "Picture_Upload" to upload a picture on product listing page. I have replaced the product image with a canvas to display the uploaded picture so that customer can customize the image but the uploaded picture is not getting displayed in canvas at all.

Also have can i access this custom field in code? {$product-&gt;Picture_upload} something like this?

Please help.

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDkxOTctdXBsb2FkZWQtcGljLW5vdC11cGxvYWRpbmctaW4tY2FudmFzLW9uLXByb2R1Y3QtbGlzdGluZy1wYWdlP3RtcGw9bWFya2Rvd24=) 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 [\#365883](#365883) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[uploaded pic not uploading in canvas on product listing page](/forum/26-product-category-display/909197-uploaded-pic-not-uploading-in-canvas-on-product-listing-page#365883 "-- HikaShop version -- : 5.1.5 -- Joomla version -- : 5.2.3 -- PHP version -- : 8.3.16 -- Browser(s) name and version -- : chrome  I have a custom field of ajax&#95;img type labelled as &quot;Picture&#95;Upload&quot; to upload a picture on product listing page. I have replaced the product image with a canvas to display the uploaded picture so that customer can customize the image but the uploaded picture is not getting displayed in canvas at all.  Also have can i access this custom field in code? {$product-&gt;Picture&#95;upload} something like this?  Please help.")*

Hi,

You have javascript code to control your canvas. And the uploaded image is available directly after the upload is done.
What I would do in your case is to use setTimeout to periodically list the elements with the class "hikashop_upload_imagethumb_small" on the page. And once you find any, you can look for an img tag within that element. The src attribute of that img tag will contain the URL of the uploaded image, which you can directly include in your canvas.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDkxOTctdXBsb2FkZWQtcGljLW5vdC11cGxvYWRpbmctaW4tY2FudmFzLW9uLXByb2R1Y3QtbGlzdGluZy1wYWdlP3RtcGw9bWFya2Rvd24=) 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.055 seconds

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