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

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]

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.

Stramm

I've created to functions where you as admin can add own functionality to the shop
open include/functions.inc.php
scroll down to the end of that file and find
- function calculate_discount()
and
- function calculate_shipping()

both you could modify in a way that you get your desired result.

erika_conn

Oh, I am so happy with your help.  You should feel very proud of yourself.  This is a wonderful plugin you created.

I have another question re: If you need the basket buttons elsewhere, then edit template.html and use the placeholder {CART_MENU} where you need it.

I would very much like to have the buttons in the minicms since that is where I wrote my blurb.  But just on one minicms.  Would you be able to help me there or do I have to ask the person who developed it?

http://bigshots.ceconn.com

Stramm

I've never used minicms before... so no, I can't help you with that.

erika_conn

I think it's your bedtime now.  Thank you for all your help.  Sleep well.

BIGSHOT

Hi there I added the Photo_Shop folder to the Plugins folder using Filezella FTP

I then went to the plugins manager to click on the 'i' in the circle to activate/install it and I am getting this error message:


Fatal error: main() [function.require]: Failed opening required '/home1/bigshot2/public_html/plugins/Photo_Shop/include/functions.inc.php' (include_path='.:/usr/php4/lib/php:/usr/local/php4/lib/php') in /home1/bigshot2/public_html/plugins/Photo_Shop/codebase.php on line 20

why is it trying to find a folder called 'include' inside the Photo_Shop folder?!    ???

Thanks very much

Aeronautic

Stramm,

Please forgive me if this seems like a stupid question, but with settings picked correctly, is there any reason the shopping cart plug-in could not be used with video files?

I assume re-sizing would not be used, but if I had the standard video file+photo thumbs could I at least take advantage of the pricing and cart without download deliveries?

Thank you for all your efforts to develop this resource, support it, and improve it!


Stramm

Quote from: Aeronautic on January 20, 2009, 04:14:24 AM
Stramm,

Please forgive me if this seems like a stupid question, but with settings picked correctly, is there any reason the shopping cart plug-in could not be used with video files?

I assume re-sizing would not be used, but if I had the standard video file+photo thumbs could I at least take advantage of the pricing and cart without download deliveries?

Thank you for all your efforts to develop this resource, support it, and improve it!




With some smaller modifications I guess yes

Stramm

Quote from: BIGSHOT on January 19, 2009, 11:35:24 PM
Hi there I added the Photo_Shop folder to the Plugins folder using Filezella FTP

I then went to the plugins manager to click on the 'i' in the circle to activate/install it and I am getting this error message:


Fatal error: main() [function.require]: Failed opening required '/home1/bigshot2/public_html/plugins/Photo_Shop/include/functions.inc.php' (include_path='.:/usr/php4/lib/php:/usr/local/php4/lib/php') in /home1/bigshot2/public_html/plugins/Photo_Shop/codebase.php on line 20

why is it trying to find a folder called 'include' inside the Photo_Shop folder?!    ???

Thanks very much

Make double sure you uploaded all files and all subfolders (especially the include folder)


Stramm

I only can view the first pic... the winzip archive view. The 'path' represents the subfolders.

So I'm guessing now...
If you extract the files using drag/ drop, then you destroy the path info. You need to extract the files keeping the folder structure intact. Read your applications instructions on how to do that.

BIGSHOT

Both the pictures i hosted were the same - justdifferent links incase one didnt work ;)

I just used Winzip to unzip your 'photo_shop_1_4.zip' file! I then extracted everything from it to a folder I named Photo_Shop and used Filezilla to move the Photo_Shop folder into the Plugsins folder of CMG.

It says in the CMG documents that teh best way to install plugins is to use winzip rather than relying on the server/host's system to unzip it as it can mess things/ doesnt always keep them in their purest form.

Any idears now? thanks a lot 

Stramm

I just can repeat the said... if you do not see any subfolders, then something is wrong. And that's what you said in your previous post.
QuoteWhen I extract the Photo_Shop 1.4 Zip file there arnt any subfolders in it

So try unzipping till you manage to keep the folder structure intact.  Otherwise it won't work... as you see.

BIGSHOT

Cheers Stramm. I found a different way of extracting the contents of 'photo_shop_1_4.zip' so that I can see all of the contents and subfolders including 'include'.

The first time I put the folder 'Photo_shop' into the plugins folder in cpg I check ed in the plugin manager and it had showed up. I went to click the 'i' to install it and it showed a 'go' button I waited and clicked that and nothing happened. Now when I take the folder out of plugins and put it back in it doesnt even show up un the plugins manager.

???????????????? Thanks a lot

BIGSHOT

I just found out - the only way I can get it to show up again is if I rename the folder as 'photoshop'. If I have it as photo_shop it doesnt show up in the plugins manager.


Heres after clicking the 'i' while the folder is called 'photoshop' in the Plugins folder of cmg:

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fimg187.imageshack.us%2Fimg187%2F5853%2Fwheniclickongofx3.th.gif&hash=b83875d265c487634618f2f2bf64cd164c9b530e)


Heres after clicking on the 'Go' button:

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fimg81.imageshack.us%2Fimg81%2F5231%2Fwhenihaveclickeddt9.th.gif&hash=c985e30507eb99162d0e2316033461bc9fb0ab87)


Thanks again, Remy

Stramm

renaming is not an option as the plugin won't work

uninstall the plugin, maybe you'll have to edit the database manully and remove the photo_shop entry from the plugins table. Then retry

BIGSHOT

Right. Ok then - I have no clue how to open the database manually.

I just find it really odd how when called 'photoshop' it shows up in the manager and when called 'photo_shop' like you cay it must be - it doesn't show up at all.

Could it be anything to do with the Hardwired theme I'm running at all?     :'(

Stramm

I do not think so.. but just try. Temporarily use the classic theme.

phill104

Quote from: Stramm on January 21, 2009, 07:07:21 PM

my CPG sandbox: Version 1.4.18 with modpack running my Tentacle theme:



Please upgrade. I'm sick of telling people to do that. ;) ;D
It is a mistake to think you can solve any major problems just with potatoes.

beeroll

Hi Stramm,

Thanks once again for this plugin and all your support work, it really is filling a big need for Coppermine.

I've installed the plugin on a website I'm working on, and am running into a bit of an issue.

Once someone has placed an order, and I've marked it paid, I am having trouble creating the download directories.

When I click on the "D" button, I get an error message saying "Directory already exists.... delete first! Order id: x"

But if I then click on the "X" to delete it, I get a message saying "Folder does not exist! Can not delete it! Order id: x"

and if I click "C" at any point, I get the error message "albums/downloads/x_x/ does not exist or has been deleted! Create it first [D]!"

The plugin wants to create a directory in /albums/downloads/ - permissions on that directory are 777, by the way - but it never seems to.

However, if I simply click on the "Download zip" button, that works fine. Unfortunately, that only appears to the site admin, not to registered users.

So as the site admin I can download a zip file, but my customers can only get the error messages.

I tried it on my theme, and also on the Classic theme, with the same results.

The site is gordonross.ca and a registered user login is ben/t3st

Anything you can suggest?

Cheers,

Ben Rollins.

Stramm

Check if save mode is enabled... if so, then this plugin won't work for you (or at least the download feature) as it is dependent on creating folders.