January 8, 2013 at 10:53 pm #19221
I want to start selling images / prints one day, and was wondering if it would be possible to add images to the cart from the portfolio pages ?
I’m guessing this is a woocommerce custom job, ive read a few blogs about adding single items from anywhere on the site to the cart, and in fact im not sure that I would want to add all items in the portfolio to the cart, only some items.
Not sure why im posting this to be honest as I pretty much already know what the answer will be, I just want to clarify that it is a shop modification and not something that can be done via the theme.
I would also want to keep the shop page open, but it would be nice to have the option from the portfolio to buy that said image.
RegardsJanuary 9, 2013 at 10:48 am #102722
Did you try to use the woocommerce shortcodes inside the portfolio item description? A list of popular shortcodes can be found here: http://wcdocs.woothemes.com/user-guide/misc/shortcodes/
PeterJanuary 9, 2013 at 11:20 am #102723
ohh, thanks for the link thats exactly what I was looking for, cant believe I never stumbled upon this on my travels !!!
Thank youJanuary 9, 2013 at 12:13 pm #102724
Dont suppose if you know I can add shortcodes to the lightbox popup ?
I’m adding it and the HTML is messing the popup
My alternative method is to just add the relevant shop images to the bottom of the blog article, but not ideal as i cant add them to the portfolio
I guess I might have to read up a little more ;)January 9, 2013 at 2:03 pm #102725
Im getting there
If I add a link using HTML character entities like:
( your forums wont allow HTML Characters here is the link ? >> http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references
The popup will display a working link and display correctly
If I use a shorcode for example:
it displays the HTML as text.January 10, 2013 at 2:12 pm #102726
Unfortunately the lightbox plugin doesn’t have support for shortcodes. You would have to put int he html that the shortcode generates instead of the shortcode itself.
So you could add the shortcode to the page then view the source of the page and copy that little bit to then be pasted where you want it. That *should* do the trick but it takes a bit of extra steps.
DevinMay 12, 2013 at 4:50 am #102727
I want to use the ‘add to cart feature’ for portfolio items but use only one product ID for all images. Is there anything I could put in a woocommerce short code that tells me what picture was ordered?
Again, it’s about avoiding to list every product as a separate item or a product variation.
A workable solution would be to have a short code like this in the portfolio item description:
[add_to_cart id="" comment="Picture1354.JPG"]May 12, 2013 at 5:53 am #102728
No, afaik the add_to_cart shortcode just accepts the id parameter – all options/shortcodes are listed here: http://docs.woothemes.com/document/woocommerce-shortcodes/
PeterMay 12, 2013 at 6:35 am #102729
Shame. How about this: Can I purchase the woocommerce product add-on plugin
Setup a ‘Customer input box for my product’ and call it from my portfolio with a prepopulated value?
[add_to_cart id="345" CustomerInputBox="Picture1354.JPG"]
Would that fly?May 12, 2013 at 6:40 am #102730
Looks like somebody has asked a very similar question here:May 12, 2013 at 7:00 am #102731
I’m not sure but probably not because the input fields are also connected to the product id and won’t add a new parameter to the “add to cart” shortcode. However I don’t want to claim something wrong and I’d recommend to contact the woocommerce support team: http://www.woothemes.com/support/ for more detailsMay 12, 2013 at 7:44 am #102732
Okay thanks. I just wrote them. I’m considering to use the photos and swatches plugin as a work-around. But this is not ideal.May 13, 2013 at 5:17 pm #102733
The topic ‘Is it possible to add to cart from the portfolio ?’ is closed to new replies.