-
AuthorPosts
-
June 14, 2020 at 6:39 pm #7629AshwiniParticipant
Any chance we can use parameters for woocommerce
as of now $$title$$ is working as a woocommerce product title, but there is no way to add product tag or product brand on the shortcoder or I don’t have any idea how to achieve this with woocommerce site.
June 14, 2020 at 9:08 pm #7630AshwiniParticipantSorry for my spelling mistakes.
I realise after posting it.
June 14, 2020 at 10:04 pm #7631Aakash ChakravarthyKeymasterHi Ashwini,
Thanks for the idea. Right now woocommerce tags are not supported inbuilt.
I’ll soon add them to the plugin.
Thanks,
AakashJune 14, 2020 at 10:49 pm #7632AshwiniParticipantThanks for replying
I will be eagerly waiting for that update.
June 26, 2020 at 8:00 pm #7680AshwiniParticipantAny ETA for this update?
June 27, 2020 at 2:05 am #7682Aakash ChakravarthyKeymasterHi Ashwini,
Sorry for the delay. Could you please list down all the woocommerce related info you might need right now ?
I’m planning for a release for July month mid.
That release should have the basic and possible woocommerce parameters.
Thanks,
AakashJune 27, 2020 at 11:16 am #7683AshwiniParticipantHello Aakash,
As of initial release, basic things will be helpful e.g. product_brand, product_cat, product_tag & product_attributes. (these things I need as of now)
other things that can be added: (maybe later)
product sub-category
product SKU
product short description
product regular price
product sale pricelater on, woocommerce basic parameters linking functionality. (e.g. product_brand parameter linking to that specific brand as an anchor text, but there should be an option to keep it like normal text or linked text, this will be helpful for many user cases).
June 27, 2020 at 11:06 pm #7684AshwiniParticipantHoping this would help, sorry if I have given anything wrong because kind of a noob in this matter and don’t which things are possible and which not in the plugin stuff.
June 28, 2020 at 12:24 am #7685Aakash ChakravarthyKeymasterHi Ashwini,
NP. Shortcoder is a simple plugin to condense whatever HTML/CSS you have to a “shortcode” which can be used in multiple locations.
The “shortcode parameters” as just additional features.
Before I implement the woocommerce the parameters I’ll sure go through possiblity and then add them or even more.
Thanks,
AakashJuly 18, 2020 at 7:19 pm #7762AshwiniParticipantHello Aakash,
Any update on this?
Thanks
AshwiniJuly 18, 2020 at 11:12 pm #7764Aakash ChakravarthyKeymasterHi Ashwini,
I’m planning for an update next week before Sunday.
Thanks for the patience.Thanks,
AakashJuly 20, 2020 at 2:29 am #7776AshwiniParticipantThanks for replying aakash.
July 25, 2020 at 12:58 am #7797Aakash ChakravarthyKeymasterHi Ashwini,
While working I found that integration with WooCommerce looks out of the scope of “Shortcoder” plugin and no other users have requested for the same. Also, there are lot of variables and it works only inside a woocommerce post. There will be more requests for specific customization of the output which is outside the plugin’s scope to support and maintain.
So I decided to not to integrate with the plugin now.
But since I promised you one, I wrote the integration for you which you can use on your own.
Please paste this code in your theme’s function.php file (or) shortcoder/shortcoder.php file (or) you can use a plugin like https://wordpress.org/plugins/code-snippets/ to use it.
Cheers !
Thanks,
AakashJuly 25, 2020 at 11:08 am #7798AshwiniParticipantHi Aakash,
Thank you so much for sharing this code
Can we add the provision of “product_brand” to show Product Brand in shortcoder?
‘product_brands’ => __( ‘Product brands’, ‘shortcoder’ ),
$metadata[ ‘product_brands’ ] = $product->get_brands();
I tried adding these two lines at their respective place to get it to work, but it breaks the plugin functionality.
July 25, 2020 at 12:39 pm #7799Aakash ChakravarthyKeymasterHi Ashwini,
Please try replacing
$product->get_brands()
withget_the_terms($product->get_id(),'pa_brand')
I have not tested it.https://stackoverflow.com/questions/56276674/how-to-get-the-brand-name-of-product-in-woocommerce
Thanks,
Aakash -
AuthorPosts
- You must be logged in to reply to this topic.