June 14, 2020 at 6:39 pm #7629
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 #7630
Sorry for my spelling mistakes.
I realise after posting it.June 14, 2020 at 10:04 pm #7631
Thanks for the idea. Right now woocommerce tags are not supported inbuilt.
I’ll soon add them to the plugin.
AakashJune 14, 2020 at 10:49 pm #7632
Thanks for replying
I will be eagerly waiting for that update.June 26, 2020 at 8:00 pm #7680
Any ETA for this update?June 27, 2020 at 2:05 am #7682
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.
AakashJune 27, 2020 at 11:16 am #7683
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 short description
product regular price
product sale price
later 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 #7684
Hoping 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 #7685
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.
AakashJuly 18, 2020 at 7:19 pm #7762
Any update on this?
AshwiniJuly 18, 2020 at 11:12 pm #7764
I’m planning for an update next week before Sunday.
Thanks for the patience.
AakashJuly 20, 2020 at 2:29 am #7776
Thanks for replying aakash.July 25, 2020 at 12:58 am #7797
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.
AakashJuly 25, 2020 at 11:08 am #7798
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 #7799
Please try replacing
I have not tested it.
- You must be logged in to reply to this topic.