I am developing a store overthere i'm using metafields to retrive product using all_products and also used unique handle to get product on paroduct page but somehow it gives me repeated product list for last two or three products. i'm trying to archive this using metafileds but it wont' work.

i have tried to access shopify all product handle and get 20 unique products using meta fields but somehow it display repeated products
944 views Asked by user17308956 At
1
There are 1 answers
Related Questions in CSS
- How to use custom font during html to pdf conversion?
- Storing the preferred font-size in localStorage
- mp4 embedded videos within github pages website not loading
- Is there any way to glow this bulb image like a real light bulb
- What can I do to improve my coding on both html and css
- Uncaught TypeError: google.maps.LatLng is not a constructor at init (script.js:7:13)
- Bootstrap modal not showing at the desired position on a web page when the screen size is smaller
- How to increase quality of mathjax output?
- Hover animation resetting( seemingly reverting back to original CSS and then again to hover)when moving mouse horizontaly accross a part of an element
- Storing selected language in localStorage
- How to clip grid cell and provide scroll as well?
- KeyboardAvoidingView makes a messy the flexbox
- Rotate an object around another object in javascript
- Understanding Scroll Anchoring Behavoir
- how to use only block layout in this css code?
Related Questions in SHOPIFY
- Can I Customise The Order Table At Admin Side Of Partner.Shopify?
- Integrating OpenAI's ChatGPT with Shopify and Interakt Webhook for Improved Customer Support
- Remove specific products from cart on change in shopify
- Shopify theme edit to change bundles copy
- The Hamburgermenu of my shopify website (www.skiffaboei.myshopify.com) is not showing after clicking on the icon
- Integrating with Shopify to Retrieve Invoices as PDFs
- Shopify Flashlist re-render issue in android
- Shopify - Checkbox being unchecked during checkout
- Blogs Standard URL Filter /Tagged/Tag Not Working - Shopify
- Does Shopify Functions Work with Draft Orders? Unable to Disable Coupon Code Application
- How to send note attribute field in order data in Shopify liquid?
- After pointing Cpanel domain to Shopify, I am not able to either Receive or Send Emails
- Shopify reCaptcha V2 align to right cant select images or buttons
- In shopify set default product image size
- What CSP Headers are needed for serving .NET Core site to iframe in Shopify Page?
Related Questions in LIQUID
- Remove specific products from cart on change in shopify
- Blogs Standard URL Filter /Tagged/Tag Not Working - Shopify
- Liquid Template - How to map JSON object as a string to output field
- Eleventy site builder: Make JavaScript function available for Nunjucks templates
- Looker: Comparing Dynamic Dates with Liquid
- Liquibase 4.26 while importing the csv file it's taking long time
- Fill missing elements with previous one - Liquid, Shopify
- How to call a Cart Drawer in custom product section?
- Shopify Metafield List of Collections
- How would I close this space up on the right? Using Shopify liquid
- Unable to build dynamic iterative lists
- Resetting loop count on liquid on condition
- window.Shopify.settings is undefined. How do I access Shopify theme settings in JavaScript?
- How does Jekyll apply `include` outside of `<body>` tag?
- Checkout Page in Shopify
Related Questions in SHOPIFY-TEMPLATE
- How to send note attribute field in order data in Shopify liquid?
- How to inject the product.liguid file automatically
- Shopify Plus - How to replace city dropdown with city text field with Checkout UI Extention
- how to get dates fiter wise get product collection in Shopify
- Shopify cli: developing template from scratch shows default theme "Dawn"
- Issue with Predictive Search Add to Cart Button not working for first product result in Shopify Dawn Theme
- Shopify: My Theme won't allow me to "Add Section" and native widgets
- How to Customize Shopify Account Page to Include Separate Tabs for Account Details and Subscriptions?
- Can I export Collections out of Shopify?
- Shopify Dawn Theme - Add Icons in place of Bullet points in multicolumn layout
- Creating GraphiQL request to filter orders by referralCode or utmParameters
- Shopify: Automatic Discount Detail On Product Detail Page
- Unable to run Shopify Theme App Extension
- Is it possible to use useStorage() hook in shopify's webpixel api
- shopify how to pdf file generated and set image
Related Questions in SHOPIFY-ACTIVEMERCHANT
- Can we send two people sms while checkout on shopify?
- Shopify URL to add multiple items with discount code and utm parameters
- how to access token on installation of the shopify app?
- Cannot make metafields per variant visible in Shopify
- Shopify checkout page custom changes possible?
- How to make custom changes in shopify checkout page using edit code?
- Shopify: How can I limit a product to 1 per customer
- Oauth error invalid_request: The authorization code was not found or was already used " shopify. showing error like this when i hit api with code
- i have tried to access shopify all product handle and get 20 unique products using meta fields but somehow it display repeated products
- How to use activemerchant with Shopify?
- How to create custom Shopify ajax Filter for collection?
- Osiset\ShopifyApp\Exceptions\MissingShopDomainException
- Hover Creation and image flip on a Custom shopify page I created
- Shopify Confirm password issue due to g-recaptcha
- Starting a new shopify session from shopify_token and shopify_domain?
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Using metafields for that it's not a good idea, because multiple things can be wrong like your client creating a handle redirect.
A handle goes to a single product but multiple handles can go to the same product, maybe that is your problem. Another trouble with your code is you convert the product title if it contains / or , so maybe they're different products but after your title conversion, they look similar... You should remember the handle can be edited, or changed to a redirect.
Another way to achieve this can be using collections, it will be easier to maintain, adding or removing products from the collection. Adding a product metafield to save the collection will help on easy maintain and detach the collection from the product handle.
STEPS:
Done!
now your code should be: