right, i know that much. But how do i parse the picture's ID to the cart?
Why Configure Every Product Separately When Used with NextGen Gallery
(74 posts) (9 voices)-
Posted 4 months ago #
-
From the gallery template you can use the following to get the image id:
$image->pidYou can't add it to the cart since a product that can be added must be stored in the database (eStore pulls the product information from the database using the product ID). This is why I have to use the "Buy Now" button option which allows me to create a button on the fly without it having to be in the products database.
Posted 4 months ago # -
So there is no way to transfer '$image->pid' as a hidden field of the product?
Say I want to sell 100 pictures, each with the same pricing and variations. All I want is the cart to tell me which file name it was, so it would need to add '$image->pid' as a field which the seller can see post-transaction... Do you understand what I mean?
Posted 4 months ago # -
yeah you add the picture id ($image->pid) in the custom field and it will be available to you in the IPN handling script.
In the "wp_eStore1.php" file check out the "append_values_to_custom_field" function.
Posted 4 months ago # -
Amin007,
I have the same problem (am too selling prints). Could you please be a little more specific?
Am I supposed to edit the mentioned function in "wp_eStore1.php" like this?$custom_field_val = append_values_to_custom_field($image->pid);
Really appreciate your help.
Posted 4 months ago # -
Don't worry about doing any manual tweaks as I am adding this functionality to eStore (I should be able to complete this implementation soon so wait a day or two if you can).
Posted 4 months ago # -
Finished implementing the alternate NextGen gallery integration option. The integration instructions can be found here:
http://www.tipsandtricks-hq.com/ecommerce/nextgen-gallery-alternate-integration-method-805
Posted 4 months ago # -
Woho! Nice, thanks so much.
But I can not figure out how to update the plugin.. what am I missing?
My download link has expired, do I have to buy it again?! (bought it last week)Posted 4 months ago # -
Hi, You can read more about how updates work here: http://www.tipsandtricks-hq.com/forum/topic/how-and-when-do-you-get-an-update
I will send you an update via email. Please let me know if you do not receive this email.
Cheers,
IvyPosted 4 months ago # -
Awesome awesome!!! Thanks guys for working on this. I will give this a try as soon as I can get my hands on the update :)
Posted 3 months ago #
Reply »
You must log in to post.