[cpg1.4.x]: Shopping cart (new version) - Page 13 [cpg1.4.x]: Shopping cart (new version) - Page 13
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

[cpg1.4.x]: Shopping cart (new version)

Started by Stramm, December 21, 2008, 11:43:01 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

imasonaz

Sorry to double post... But I can't edit my own posts... anyway I looked around some and noticed how it was on your example site... except this plug-in doesn't seem to work well with my theme at all (Mac ox x) (it seems none of my themes show the buttons in the cart) none of the buttons show up in the shopping cart and the links added to the bar at the top are off a little.

cryptk

did you follow the install instructions about the css changes and copying the image files?

cryptk

Quote from: cryptk on August 14, 2009, 08:47:13 PM
I am working on making some nice additions to the photo_shop plugin.  My plan so far is basically to add in some AJAX so that instead of adding an item to your cart, having it load a page saying the item was added, then have it load the page for the picture you were viewing it will instead have this functionality.

Select your item for the photo (usually the size you want)
Some AJAX code will add that item to your shopping cart
It will pop up a small window in the middle of the screen notifying you that it was added and then it will disappear 2 seconds later
The button telling you how many items are in your cart will update to represent your new total items.


This should reduce the total number of SQL queries and bandwidth required as well as make the shop faster to use for the customer.

Stramm if you have any input into this just post it here or PM me and I will make it work how you want it to (since it is your project).

I will be posting how to enable this on other shopping carts once it is done, but please don't bug me to hurry up with it because it is a side project and I have a day job, lol.

Another thing that I realized would benefit from AJAX is the display of your cart contents as well... have it so that updating the quantities does not require a full page reload...  I am hoping about a week to get everything finished and instructions written up.

nanny

Hi I would let others know what I have solved with the problems I have had:
I disabled the full size access plugin and now the shop works again. Every day seems to be different on whether it works or not so I thought it was a cookie problem. I changed the cookie name and didn't seem to make any difference.
With the full size access plugin enabled I could only use the shop once I was logged in. I still can't work that one out.

I still haven't worked out having both option: photo download AND photo option sent as a canvas, size, keyring etc., and having the cd option. I can get either download OR photo option and cd option.
When in admin I can't get the paid icon working it always says unpaid. Viewed icon works though.

I hope it still works tomorrow because this is such a great program, thank you...

nanny

Hi I found how to add the paypal button in email invoice but it doesn't show up in emails. How do you add a header etc. to allow it?
Thanks.

FixitDave

Just like to say thanks for this great plugin.

Site: http://www.fixitdave.hostcell.net/cp/
Shop Version: v1.4.0

The shop works ok so far, but the option box to add the image to the cart doesn't show if you have EnlargeIt or LightBox installed...Is there a way to have the shop and EnlargeIt/LightBox working at the same time?

Stramm

Search... I've posted a shop mod that displays the cart on the thumbs page. That should work together with the plugins you mentioned. Don't remember where... a seperate thread or in this one, maybe in the old shops thread.

chae

Hi Yah Stramm,

First of all thanks for a brill & easy to use cart system.

I'm afraid I have the same issue as FixitDave, i.e issue with Lightbox...I have gone through this thread numerous times & have on your advice searched the forums using countless search strings...lightbox photo cart, lightbox enlargeit photo cart mods etc etc etc Have even done the same on Google.

It would be appreciated if you could maybe post the mod again or point us in the right direction once you have a spare moment.

Many thanks in advance

Chae


chae

Hi Yah Stramm,

Thanks for the reply, applied the changes but found that the pulldown menu with the various prints price options wasn't populated & it wasn't really the ideal place to have the order system.

Then I did a bit more searching & by accident I found another thread about something totally different which stated if you moved the order of the plugins this sometimes helps with conflicts. So with nothing to lose I placed the LightBox plugin first in line, then my captcha plugin then the Photo Cart & it worked first time :)

So for anyone with the same problem or similiar try reordering the plugins before changing code.

computel

I get a error when I install Photo_sell 1.4

I'm running 1.4 of Coppermine

here is the error I get when I upload the file:

  Critical error
There was an error while processing a database query 


I can't use my site till I remove the directories it creates photo_shop & receive.

The install of coppermine directory is in a subdirectory off the root.

Thanks

Evan

chae

What am I missing  ???

I've setup payment for PayPal & then signed up for a sandbox account & tested IPN etc etc & all okay. I then test the shopping cart by purchasing a product, when I go to the PayPal payment page it asks the user to signup for a PayPal account. I don't wont that I have been to several other sites which have the option to pay direct by credit card & beside it a if you have a paypal account sign in option.

Is this in the PayPal setup or the script being called in the cart config

Many thanks in advance

CHAE

chae

Found the answer & one that took a wee bit of finding...

http://www.kalzumeus.com/2008/11/16/can-my-customers-use-paypal-without-an-account/

There was still a cookie sitting in the browsers cache which was from a prior session at PayPal, cleared the browser of all cache/cookies etc etc & retried. Logged in as a customer, purchased a print, hit the PayPal button & voila split screen, pay with credit card or login as a PayPal user.

Regards

Chae

DonLKSAB

Hi. First of all thanks for a exelent mod.
I only have one small issue.
If the user misses to click the Paypal button the only time its visible they can never pay.
It would be cool if the "pay with paypal" button could be visible in "my orders".
But i did find this post were i can add it to the email that is sent.
But i got lost on the first step:
Quote from: Stramm on May 14, 2009, 12:26:43 PM
Here you'll see the shop looping through all basket items and creating form fields. At the end of the block it adds these form fields and a submit button to the variable $msg_box_txt. The same that gets added to the message box save in another variable. Let's call it $add_paypal_to_user_email
Could someone explain a bit slower what to do :-)

Quote from: Stramm on May 14, 2009, 12:26:43 PM
In photo_shop_checkout.php find the part that generates the paypal code right after
//pay with paypal

Here you'll see the shop looping through all basket items and creating form fields. At the end of the block it adds these form fields and a submit button to the variable $msg_box_txt. The same that gets added to the message box save in another variable. Let's call it $add_paypal_to_user_email

Now find the function photoshop_email_the_user {} and add the newly created variable to the globals.
To the $template_vars array add
'{PAYPAL_BUTTON}' => $add_paypal_to_user_email,


Open the language file and edit the variable $lang_photoshop_email_order ... add {PAYPAL_BUTTON} where the paypal button should appeare.

A problem could occur though... the messages are sent in plain text. So you'd need to switch to html.
in the function photoshop_email_the_user {}
change
if(cpg_mail($user_info['user_email'], $subject, $mail_body)) {

to
if(cpg_mail($user_info['user_email'], $subject, $mail_body, 'text/html')) {


However it might be that you'll have to edit the mail template as well (make it html mail compatible... header, html tags eg. <br>)


Stramm

replace
$msg_box_txt .= <<<EOT
<br><br>{$lang_photoshop['paypal']}<br>

<form action="{$CONFIG['photo_shop_paypal_form_url']}" method="post">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="upload" value="1">
<input type="hidden" name="invoice" value="{$order_id}">
<input type="hidden" name="business" value="{$CONFIG['photo_shop_paypal_email']}">
<input type="hidden" name="currency_code" value="{$CONFIG['photo_shop_paypal_currency']}">
{$paypal_items}
{$paypal_tax}
{$paypal_return_url}
{$paypal_cancel_return_url}
{$paypal_notify_url}
<input type="image" src="{$CONFIG['photo_shop_paypal_image']}" name="submit" alt="Pay with PayPal!">
</form>

EOT;


with
$add_paypal_to_user_email .= <<<EOT
<br><br>{$lang_photoshop['paypal']}<br>

<form action="{$CONFIG['photo_shop_paypal_form_url']}" method="post">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="upload" value="1">
<input type="hidden" name="invoice" value="{$order_id}">
<input type="hidden" name="business" value="{$CONFIG['photo_shop_paypal_email']}">
<input type="hidden" name="currency_code" value="{$CONFIG['photo_shop_paypal_currency']}">
{$paypal_items}
{$paypal_tax}
{$paypal_return_url}
{$paypal_cancel_return_url}
{$paypal_notify_url}
<input type="image" src="{$CONFIG['photo_shop_paypal_image']}" name="submit" alt="Pay with PayPal!">
</form>

EOT;
                 $msg_box_txt .= $add_paypal_to_user_email;



That's the $add_paypal_to_user_email and $msg_box_txt part of the instructions in code.

soundman

Hi Stramm

i have a problem i'm trying to add paypal button to the email and this not working.
i't seems that photo_shop not send mail in html language i try to change

Code:
   if(cpg_mail($user_info['user_email'], $subject, $mail_body)) {
to
Code:
   if(cpg_mail($user_info['user_email'], $subject, $mail_body, 'text/html')) {

but still nothing any ideas what hapening ??

Stramm

feed the mail functions with more info... open eg. ecard.php and copmpare with the function call there to know what you need to do

and maybe have a look at include/mailer.inc.php

hunterjo2

Stramm

I really need advice on this!

Please help.... ???

Quote from: hunterjo2 on August 12, 2009, 11:10:56 PM
Hi Stramm,

Can you please goto www.rallyimage.com/gallery/index.php purchase a pic and try to check out.  All I get is a blank screen.

I am at a loss of what to do.

Joe

Joachim Müller

@hunterjo2: You failed to post a non-admin test user account.

hunterjo2

Quote from: Joachim Müller on October 13, 2009, 10:34:05 AM
@hunterjo2: You failed to post a non-admin test user account.

Sorry about that!

user: testuser09
pw: test09