Create a WooCommerce shortcode
Budget: $10 – $30 USD
Hello! I need the following shortcode, it will be executed in a product page, show it should use the current information of the displayed product.
[woo-gallery rule="X" img="X"][/woo-gallery]
rule="X" --> 2 available option: url/exist
1) url: the shortcode will render the image url, the whole path.
2) exist: the shortcode will render the inner code/text/shortcode only if that image galley exists, for example:
[woo-gallery rule="exist" img="4"]This text will only show if for this current product there is a 4th image in the gallery[/woo-gallery]
[woo-gallery rule="exist" img="3"] [woo-gallery rule="exist" img="4"][/woo-gallery] [/woo-gallery] --> This will render only a image url if the image gallery number 3 ecists, then it will show image gallery url from number 4.
img="X" --> X can be 1, 2, 3, 4, 5, 6, 7, etc. The numbers correspond to the WooCommerce product images in the gallery ==>https://snipboard.io/SLZkTC.jpg
So for example if I put [woo-gallery rule="url" img="3"][/woo-gallery] I will get the third image of the gallery, we will render here JUST the URL.
Budget: 30
Milestone will be released once the code is tested in my sever.
No server access will be given.
[woo-gallery rule="X" img="X"][/woo-gallery]
rule="X" --> 2 available option: url/exist
1) url: the shortcode will render the image url, the whole path.
2) exist: the shortcode will render the inner code/text/shortcode only if that image galley exists, for example:
[woo-gallery rule="exist" img="4"]This text will only show if for this current product there is a 4th image in the gallery[/woo-gallery]
[woo-gallery rule="exist" img="3"] [woo-gallery rule="exist" img="4"][/woo-gallery] [/woo-gallery] --> This will render only a image url if the image gallery number 3 ecists, then it will show image gallery url from number 4.
img="X" --> X can be 1, 2, 3, 4, 5, 6, 7, etc. The numbers correspond to the WooCommerce product images in the gallery ==>https://snipboard.io/SLZkTC.jpg
So for example if I put [woo-gallery rule="url" img="3"][/woo-gallery] I will get the third image of the gallery, we will render here JUST the URL.
Budget: 30
Milestone will be released once the code is tested in my sever.
No server access will be given.