I am trying to implement individual pricing in Google Checkout. Here is what I put in the
image.php page:
<div id="google">
<?php if (function_exists('GoogleCheckoutPricelistFromString')) {
printGoogleCartWidget();
googleCheckout(NULL, true);
} ?>
</div>
I entered default values for
$pricelist in the
GoogleCheckout.php
file, and entered a pricelist string in the
customdata field for one of my images that needs special pricing. But it shows the default pricing. Has anyone done this and can they give me a little help?
Thanks very much,
Tim
Comments
Review the documentation of the plugin for details.
Which file should I be working in?
Since you say you are storing the custom price information in the customdata field, you will have to convert it to an array before passing. To do this use the `GoogleCheckoutPricelistFromString()` function. Your custom data should be in the form `size`:`media`=`price` repeated for as many price items as you have.