Naming list for wordpress product queries (for prices and other areas)
DO we have any information on the product queiry naming for each of the sections on the product posts? Currently I can query and grab the images , titles, link url and content as standard, but for the pricing to be displayed I dont know how to do this, does anyone (@fluentcart ?) have these details.
I am building a product card loop for custom display and this is my missing piece currently.
How are you building it? Are you using custom coding or a page builder?
Shahjahan JewelΒ Hi there! I'm using a pagebuilder (breakdance in this case). I can use the loopbuilder to populate the product cards with image and title (from the products post), and also the URL is good, just need to get the prices showing.
The test site is here: https://staging.vintageandaltclothing.com/ it is being made to emulate my shopify store to see if I can move it.
As you can see the product loop is working great (at the bottom of page)
If I needed I could use code snippets to create a shortcode under the title to insert the price if there isnt one already
Since Breakdance supports Gutenberg blocks, you can use our product block and easily add or remove the items you want. Iβm not sure if this helps, but feel free to ask me any questions.
No it isn't im afraid, I need either shortcodes or code /queries so that I can do the cards I need. Is there not a shortcode for the price?
Richard LaneΒ No such shortcode just for product price at this moment.
with('variants') for variation specific prices and toArray is for array response.
\FluentCart\App\Models\Product::query()
->with('detail')
//if variation needed
->with('variants')
->get()
//if output as array
->toArray();
You may use this to get product details along with prices.
Ripon SarkarΒ thank you for that. I have fluentsnippets, how could I utilise the code to get my prices displayed? (a shortcode?)
Richard LaneΒ I would request you to open a support ticket so that the support team can address your concern more effectively.