Title: Custom woocommerce function issue
Last modified: November 28, 2021

---

# Custom woocommerce function issue

 *  Resolved [muneeba1](https://wordpress.org/support/users/muneeba1/)
 * (@muneeba1)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/custom-woocommerce-function-issue/)
 * Hi,
 * I am using custom woo commerce by overriding templates. I am facing an issue 
   with the shop page template (i.e. archive-product.php). The issue is, that I 
   want to access custom fields that I have created on the shop page from admin 
   but I am not able to access it from code without including hard-coded page-id.
   Now I want to make that ID dynamic. get_the_ID(); is not working on the archive
   page so can you please let me know through which function I can make it dynamic?
 * Also, I want to access images from the admin panel of the shop page but they 
   are not accessible through following code:
 *  <img src=”<?php
    echo get_field(‘method_1’,72); ?>” /> where method_1 is the
   custom field and 72 is the shop page ID.
 * Please let me know my queries asap.
 * Thanks.
    -  This topic was modified 4 years, 4 months ago by [muneeba1](https://wordpress.org/support/users/muneeba1/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Mirko P.](https://wordpress.org/support/users/rainfallnixfig/)
 * (@rainfallnixfig)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/custom-woocommerce-function-issue/#post-15115828)
 * Hi there,
 * This is a fairly complex development topic. I’m going to leave it open for a 
   bit to see if anyone is able to chime in to help you out.
 * I can also recommend the WooCommerce [Developer Resources Portal](https://developer.woocommerce.com/)
   for resources on developing for WooCommerce.
 * You can also visit the [WooCommerce Facebook Community](https://www.facebook.com/groups/advanced.woocommerce/)
   group or the `#developers` channel of the [WooCommerce Community Slack](https://woocommerce.com/community-slack/).
   We’re lucky to have a great community of open-source developers for WooCommerce,
   and many of our developers hang out there, as well.
 * Cheers.
 *  [Mirko P.](https://wordpress.org/support/users/rainfallnixfig/)
 * (@rainfallnixfig)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/custom-woocommerce-function-issue/#post-15144698)
 * Hi there,
 * We’ve not seen any activity on this thread for a while, so I’m marking this thread
   as resolved.
 * Hopefully, you were able to find a solution and the above resources for developers
   were helpful. If you have further questions, please feel free to open a new topic.
 * Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Custom woocommerce function issue’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Mirko P.](https://wordpress.org/support/users/rainfallnixfig/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/custom-woocommerce-function-issue/#post-15144698)
 * Status: resolved