PDA

View Full Version : EE commerce order graphic not loading


Pyromaniac
30th of April 2005 (Sat), 12:02
The click here and choose ordering methid graphic isn't displaying and I can't find where in the code to fix it.

I would also like to skip the payment selection page since paypal is the only payment method that I use.

I'm sure that I'l have somemore questions later but thats all I need for now

Pekka
30th of April 2005 (Sat), 12:28
The click here and choose ordering methid graphic isn't displaying and I can't find where in the code to fix it.

the image is in translations:
/languages/xxx/photo.php (where xxx in language code)

and there line

$translated["click_here"]["image"] = "http://photography-on-the.net/beta/buy_1.jpg"; // click here

I would also like to skip the payment selection page since paypal is the only payment method that I use.

To make the buy link go directly to a template you'll need to hack a bit:

replace in photo.php (should be about line 1792)


print ee_translate_A($translated["to_order_this_photo"]) . " <a href=\"order.php?photo={$photo}&u={$uncookied_id}{$uncookied_splitter}{$offset}{$u ncookied_foochar}{$passparam}\">" . ee_translate_C($translated["click_here"]) . "";


with


print ee_translate_A($translated["to_order_this_photo"]) . " <a href=\"order.php?photo={$photo}&u={$uncookied_id}{$uncookied_splitter}{$offset}{$u ncookied_foochar}{$passparam}&template=1\">" . ee_translate_C($translated["click_here"]) . "";



The important addition is

&template=1

where 1 is the id number of the template you want to go to. You can see template id's in EE Commerce editor.

This is a global change which means after this fix if you use e.g.
&template=26 all forsale links go to template 26 and all EE Commerce assigned photos need to be assigned template 26 or you'll get error messages.