Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: 1 ... 9 10 11 12 [13] 14 15 16 17 ... 19   Go Down

Author Topic: [cpg1.4.x]: Shopping cart (new version)  (Read 279923 times)

0 Members and 1 Guest are viewing this topic.

imasonaz

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: [cpg1.4.x]: Shopping cart (new version)
« Reply #240 on: August 15, 2009, 12:44:37 am »

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.
Logged

cryptk

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: [cpg1.4.x]: Shopping cart (new version)
« Reply #241 on: August 15, 2009, 01:48:04 am »

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

cryptk

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: [cpg1.4.x]: Shopping cart (new version)
« Reply #242 on: August 15, 2009, 03:02:31 am »

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.
Logged

nanny

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: [cpg1.4.x]: Shopping cart (new version)Problems solved
« Reply #243 on: August 16, 2009, 06:54:56 am »

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...
Logged

nanny

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: [cpg1.4.x]: Shopping cart (new version) paypal button in invoice html
« Reply #244 on: August 16, 2009, 08:54:44 am »

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.
Logged

FixitDave

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: [cpg1.4.x]: Shopping cart (new version)
« Reply #245 on: August 22, 2009, 01:11:30 pm »

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?
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: [cpg1.4.x]: Shopping cart (new version)
« Reply #246 on: August 22, 2009, 07:53:06 pm »

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

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: [cpg1.4.x]: Shopping cart (new version)
« Reply #247 on: August 27, 2009, 02:05:34 pm »

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
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt

chae

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: [cpg1.4.x]: Shopping cart (new version)
« Reply #249 on: August 28, 2009, 02:03:40 am »

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.
Logged

computel

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28
Re: [cpg1.4.x]: Shopping cart (new version)
« Reply #250 on: September 01, 2009, 03:33:17 am »

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
Logged

chae

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: [cpg1.4.x]: Shopping cart (new version)
« Reply #251 on: September 07, 2009, 12:39:06 pm »

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
Logged

chae

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: [cpg1.4.x]: Shopping cart (new version)
« Reply #252 on: September 07, 2009, 01:04:39 pm »

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
Logged

DonLKSAB

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: [cpg1.4.x]: Shopping cart (new version)
« Reply #253 on: September 17, 2009, 10:39:44 pm »

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:
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 :-)

In photo_shop_checkout.php find the part that generates the paypal code right after
Code: [Select]
//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
Code: [Select]
'{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
Code: [Select]
if(cpg_mail($user_info['user_email'], $subject, $mail_body)) {
to
Code: [Select]
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>)

Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: [cpg1.4.x]: Shopping cart (new version)
« Reply #254 on: September 18, 2009, 07:51:21 am »

replace
Code: [Select]
$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
Code: [Select]
$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

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: [cpg1.4.x]: Shopping cart (new version)
« Reply #255 on: September 27, 2009, 12:39:56 pm »

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 ??
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: [cpg1.4.x]: Shopping cart (new version)
« Reply #256 on: September 28, 2009, 10:59:28 am »

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

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: [cpg1.4.x]: Shopping cart (new version)
« Reply #257 on: October 13, 2009, 12:41:54 am »

Stramm

I really need advice on this!

Please help.... ???

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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: [cpg1.4.x]: Shopping cart (new version)
« Reply #258 on: October 13, 2009, 10:34:05 am »

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

hunterjo2

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: [cpg1.4.x]: Shopping cart (new version)
« Reply #259 on: October 13, 2009, 10:47:57 am »

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

Sorry about that!

user: testuser09
pw: test09
Logged
Pages: 1 ... 9 10 11 12 [13] 14 15 16 17 ... 19   Go Up
 

Page created in 0.026 seconds with 20 queries.