Hi, I sent you an email regarding the update. If you need anything else please let me know.
Cheers,
Ivy
Hi, I sent you an email regarding the update. If you need anything else please let me know.
Cheers,
Ivy
Thanks again Ivy!
I implemented the template and I have a couple of questions:
- How can I change the "Buy Now" button into an "Add To Cart" button instead so that products are added to the cart.
- How can I add the variations drop down menu to each picture as well?
Vince
Hi Vince, you cannot use "Add to Cart" type buttons for this integration method. To use an "Add to Cart" button you need to have the products configured in the eStore. This integration method uses one product as a template and cannot be added to the shopping cart.
@amin007 That's really too bad... The integration would be complete imo if the name of the picture could simply port to the cart.
I was looking at this piece of code in eStore_button_display_helper.php lines 132-140 and thought maybe there would be a way to inject the picture instance name in this Customer Input Field (value="[code]") with code, then hide the field:
' if($ret_product->custom_input == '1')
{
if(!empty($ret_product->custom_input_label))
$var_output .= $ret_product->custom_input_label.': <input type="text" name="custom_input" value="" class="eStore_text_input" />';
else
$var_output .= 'Instructions: <input type="text" name="custom_input" value="" class="eStore_text_input" />';
if ($line_break) $var_output .= '
';
else $var_output .= ' ';
}'
Is this possible? Right now I have the customer inputing the name of the picture manually, selecting a variation (i.e. 8x10, 5x7, wallet size pics) then Add To Cart. All that's really missing is being able to carry over the name of the picture.
Thanks.
Vince
porting the name to the cart is no problem at all. The problem is that when a shopping cart operation (eg. item deletion, quantity change, checkout etc) is performed it uses the Product ID to uniquely identify each product and perform the operation.
This integration method uses one product as a template which is okay for "Buy Now" buttons but it can't reference to a product uniquely which is needed for a cart functionality.
Here's what I'm currently doing: http://camelarae.com/galleries/i9-sports-galleries/i9-sports-flag-winter2010/i9-2010-colts
It's 1 product repeated for every picture by pasting the code for the product under each pic. The only differentiator is the customer input. So, what I was hoping to accomplish was to auto-populate the picture's name in the box and hide the field upon the page loading. This way the buyer only has to select a variation and click add to cart...
Getting a "Internal Server Error" when I go to that URL. Maybe your site is down temporarily.. I will check back later.
Should be working now... albeit a little slow.
The only way you can get the image name is if you made your custom template file for the gallery (kind of like what I did for the "Buy Now" buttons) and then pass the image reference across when you call the function that displays the add to cart button.
That's what I thought you guys were going to do when all of this started haha! With my very limited knowledge I won't be able to really make that happen. If there's anyone reading this that can offer direction please do! Where I'm starting is in the NGG Gallery template you've got '<?php echo print_eStore_ngg_buy_now($image); ?>' which I assume is calling the necessary code to display the 'buy now' button. Where do I find it in your plugin code?
Thanks!!
You must log in to post.