Forum Replies Created
-
Ok, I think I maybe understand now, product attributes are for listing multiple products on a page.
What I’m trying to achieve is more like filtering “product additional information” so only certain fields would show….
This reply has been marked as private.This reply has been marked as private.This reply has been marked as private.This reply has been marked as private.This reply has been marked as private.This reply has been marked as private.Yeah and sorry for the Norwegian translation of WordPress, but hopefully you understand from the locations and pretty similar language what’s what.
Ok, sorry, maybe bad explaination. I use a page customized with your plugin as a template for the woo product page (picture 1).
Then I add attributes to a product (picture 3) that i want to be showed on the product page in customized location as I said in my first post.
In picture 2 I’ve screenshot the ready-made block that one can build a page from, best thing would be to have a custom block there, representing whatever attribute that is hard coded into functions.php.
Now, the thing I want to achieve is to have a soliloquy slider on top of the product page, now I’ve just pasted the Soliloquy shortcode into excerpt, and show that first. It works, except the excerpt is no longer available for this. So if I had a custom attribute with the soliloquy shortcode in it, and a block to show this attribute only, I could use this instead. Of course I could hard code a custom product page, but I really want to be able to use your plugin, since it’s so much faster for me to do changes.
Attachments:
You must be logged in to view attached files.Also, are the </another_attribute_name></attribute_name> in the end typo?
add_filter(‘dhvc_woo_title’, ‘dhvc_woo_title_custom’,10,2);</another_attribute_name></attribute_name>
Ok, if I understand correct, this would assign the values of attributes named in second line to the dhvc_woo_title function?
So when I build a custom product page, whenever I insert dhvc_woo_title it would show the values, correct? I can’t seem to get it to work though.Here are the shortcodes I use:
[product_page]
[dhvc_woo_product_page_excerpt]
[dhvc_woo_product_page_title]
[dhvc_woo_product_page_description]
[dhvc_woo_product_page_additional_information el_class=”x_product_data”]Is it possible to create a custom shortcode?