Advanced search  

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

Pages: 1 ... 15 16 17 18 [19] 20 21 22 23 ... 30   Go Down

Author Topic: Shopping cart  (Read 651913 times)

0 Members and 1 Guest are viewing this topic.

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Shopping cart
« Reply #360 on: August 05, 2007, 09:23:25 pm »

from the first post in this very thread
Quote
New version (1.3 uploaded 10/07/2006)
 - added per album settings, in the shop config you can browse through the existing albums and set different prices. These override the global configuration. Also you can disable to show the shop for a certain album (checkbox).
 - If you set in the per album settings the price for a item to 0, then it won't display anymore in the shop
 - the order admin shows now the filename too

pyrosteve

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: Shopping cart
« Reply #361 on: August 05, 2007, 10:58:42 pm »

 :D Thank you! will give it a whirl now
Logged

DesMas

  • Contributor
  • Coppermine novice
  • ***
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 31
    • VMM-IS
Re: Shopping cart
« Reply #362 on: August 07, 2007, 07:41:06 pm »

@ Stramm

I manaeged to find out the problem for the missing data in the admin area (missing profile Link and email).
Well I by myself was wrong with the idea of mixed ID's ... got mixed up by myself while browsing the tables... :P

Well the reason for this problem on a bridged shop is, that the colnames are hardcoded in the photosop_admin.php around line 380ff
this works fine in the original cpg, but when the names change due bridge use, the bridge data should be used:

old code:
Code: [Select]
while($i=mysql_fetch_array($result))
{
$user_name[] = $i['user_name'];
$user_email[] = $i['user_email'];
$this_id[] = $i['id'];
$oid[] = $i['oid'];
$uid_tmp[] = $i['uid'];
$quantity[] = $i['quantity'];
$price[] = $i['price'];
$otime[] = $i['otime'];
$status[] = $i['status'];
$aktive[] = $i['aktive'];
}

new code
Code: [Select]
while($i=mysql_fetch_array($result))
{
$user_name[] = $i[$udb_var['field']['username']];
$user_email[] = $i[$udb_var['field']['email']];
$this_id[] = $i['id'];
$oid[] = $i['oid'];
$uid_tmp[] = $i['uid'];
$quantity[] = $i['quantity'];
$price[] = $i['price'];
$otime[] = $i['otime'];
$status[] = $i['status'];
$aktive[] = $i['aktive'];
}

user_name and user_email Array were filled up with non existing datas... this could never work :P
Maybe u integrate this into the next update, because it may come up someday again in another bridged system.
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Shopping cart
« Reply #363 on: August 07, 2007, 10:23:13 pm »

thanks for this fix... it def will go into the next update ;)

Zeder

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Shopping cart
« Reply #364 on: August 09, 2007, 12:11:48 am »

Hello,
Where would I change the USD to CND funds?
Also, is there a way to add a Tax line before the Total?  I have to charge GST in Canada, 6%.
Lastly is there a link to send this to Paypal.
Cheers,
Z
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Shopping cart
« Reply #365 on: August 09, 2007, 06:37:39 am »

everything answered in this thread

iframe

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Shopping cart
« Reply #366 on: August 22, 2007, 10:57:57 am »

Hey Stramm!

At first, great update.

One question about the Email-notification.
This is great, the User can look up his order in his Email.

But i want one more thing:

How can i add the "filename" of the picture to the email.

I found in photo_shop_checkout this line:

Code: [Select]
$out['text'].= sprintf("%10.10s\t", $item_id['pid']).sprintf("%15.15s\t", $SHOP_CONFIG[$item_id['id']]['name']).sprintf("%10.10s\t", $item_id['amount'])
.sprintf("%10.10s\t", $item_id['filename']).sprintf("%15.15s\n",$lang_photoshop['USD'].' '.$price);


This will show in the Email:

ID    Typ        Amount    price complete

 3      Photo         1            EUR  5.00


To add the "filename", i thought, to add this line will be correct:

Code: [Select]
.sprintf("%10.10s\t", $item_id['filename'])
but it wont work. What´s wrong?


        EDIT:

okay, i found a way, but not final:

in photo_shop_checkout:

at first, add the title "filename": 

Code: [Select]
$lang_photoshop['filename'])
a view lines among this code to show the filename of the picture:

Code: [Select]
.sprintf("%15.15s\t", $select_columns['filename'])
but in the email i see only one letter. the first letter of the filename. why?

Thx
« Last Edit: August 22, 2007, 11:56:38 am by iframe »
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Shopping cart
« Reply #367 on: August 22, 2007, 04:05:31 pm »

http://forum.coppermine-gallery.net/index.php?topic=44417.msg211449#msg211449

Have a look at that post. It should be able to help you.

iframe

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Shopping cart
« Reply #368 on: August 22, 2007, 04:18:53 pm »

Great! Great! Great!

Thx a lot!
Logged

Troul Hawk

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Shopping cart
« Reply #369 on: August 29, 2007, 10:10:07 pm »

Stramm, for some reason I am unable to resolve your sandbox, and would like to get a copy of 1.3.5

Is there a link to download it from Coppermine's web?

Thanks!

edit: Found it along with the plugin_pack.  Thanks for your time!
« Last Edit: August 29, 2007, 10:25:15 pm by Troul Hawk »
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Shopping cart
« Reply #370 on: September 04, 2007, 08:42:36 pm »

You shouldn't use the one from the plugin pack cause it's outdated. Use the one attached to the first post in this thread.

tyio

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Re: Shopping cart
« Reply #371 on: September 09, 2007, 05:32:13 pm »

Very nice plugin because of the nice cart design , congrats :)



I ask you for a information about the coding :)


i would like to bypass the register form, because i have cancel the registration on my website. And so, when i put "pay with paypal buton", i would like to put in the order spec,  the information the buyer put (mean the n° of the picture, and the details), and not the order number :)

It's too because don't want to show the buyer the number of order i did, and too because my webhoster doesn't allow me to send mail .... So, i know paypal service is ok (and i only send .zip files, no ships :)



Thanks :)

EDIT : and what about adding some other type (more than "CD, shipping, picture") ??

:)
« Last Edit: September 09, 2007, 06:20:45 pm by tyio »
Logged

Prowler9

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
Re: Shopping cart
« Reply #372 on: September 15, 2007, 03:50:39 am »

Is there a way to change the TYPE of item being sold from photo to something else?
Logged

kiama

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Shopping cart
« Reply #373 on: September 28, 2007, 11:15:54 pm »

problem solved
« Last Edit: September 28, 2007, 11:25:56 pm by kiama »
Logged

DesMas

  • Contributor
  • Coppermine novice
  • ***
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 31
    • VMM-IS
Re: Shopping cart
« Reply #374 on: October 07, 2007, 04:37:04 pm »

Hi Stramm, as u may remember i used your shop mod in a bridged cpg_joomla system and namaged several changes to the code :P

Well at least I made some changes that may be good for the usability and maybe u take them over into one of the next versions.
Alos I dont want to hold back changes I made, because its your plugin and u should know what others do with it :P

Situation as it was:
normally u navigate in the admin area by click on the order and another click on the order details to get back to the overview of all orders.

I changes this, by removin the onclick event and set it on a real visible linktext/button:

for the order overview:
(http://www.vmm-is.de/files/cpg_shop/Liste_eingegangene_Bestellungen.jpg)

replaced:
Code: [Select]
echo <<<EOT
<tr>
<td class="alt1 smallfont" width="50px">
v<img src="$icon_type1[$k]" alt="" border="0" /><br>
p<img src="$icon_type2[$k]" alt="" border="0" /><br>
s<img src="$icon_type3[$k]" alt="" border="0" />
</td>
<td class="alt2">&nbsp;<a href="profile.php?uid={$uid_tmp[$k]}">{$user_name[$k]}</a>&nbsp;</td>
<td class="alt1Active" width="75%">

<div>
<span style="float:right" class="smallfont">Date: {$thisdate} - {$thistime}</span>
<div style="cursor:pointer" onclick="window.location='index.php?file=photo_shop/photo_shop_admin&amp;oid={$oid[$k]}&amp;box={$box}';">
{$lang_photoshop_admin['noitems']}: {$quantity[$k]} <input type="button" value="details" name="details" onclick="window.location='index.php?file=photo_shop/photo_shop_admin&amp;oid={$oid[$k]}&amp;box={$box}';"/><br />
{$lang_photoshop_admin['volume']}: {$price[$k]}{$lang_photoshop_admin['usd']} - {$lang_photoshop_admin['incl_ship']}
</div>
</div>
<div class="smallfont">
<span style="float:right;"><a href="index.php?file=photo_shop/photo_shop_zip&oid={$oid[$k]}">{$lang_photoshop_admin['download_zip']}</a></span><br>
<span style="float:right;"><a href="mailto:{$user_email[$k]}">{$user_email[$k]}</a></span>
<span style="cursor:pointer" onclick="window.location='index.php?file=photo_shop/photo_shop_admin&amp;oid={$oid[$k]}&amp;box={$box}';">{$lang_photoshop_admin['order_id']}: {$oid[$k]}&nbsp;&nbsp;- &nbsp;&nbsp;{$lang_photoshop_admin['user_id']}: {$uid_tmp[$k]}</span>
</div>

</td>
<td class="alt2" align="center" style="padding:0px"><input type="checkbox" name="orders[{$oid[$k]}]" value="{$oid[$k]}" /></td>
</tr>

EOT;
width:
Code: [Select]
    echo <<<EOT
        <tr>
        <td class="alt1 smallfont" width="50px">
        v<img src="$icon_type1[$k]" alt="" border="0" /><br>
        p<img src="$icon_type2[$k]" alt="" border="0" /><br>
        s<img src="$icon_type3[$k]" alt="" border="0" />
        </td>
        <td class="alt2">&nbsp;<a href="profile.php?uid={$uid_tmp[$k]}">{$user_name[$k]}</a>&nbsp;</td>
        <td class="alt1Active" width="75%">

            <div>
                <span style="float:right" class="smallfont">Date: {$thisdate} - {$thistime}</span>
                <div>
                {$lang_photoshop_admin['noitems']}: {$quantity[$k]} (<a href="index.php?file=photo_shop/photo_shop_admin&amp;oid={$oid[$k]}&amp;box={$box}';" target="_self">{$lang_photoshop['details']}</a>)<br />
                {$lang_photoshop_admin['volume']}: {$price[$k]}{$lang_photoshop_admin['usd']} - {$lang_photoshop_admin['incl_ship']}
                </div>
            </div>
            <div class="smallfont">
                <span style="float:right;"><a href="index.php?file=photo_shop/photo_shop_zip&oid={$oid[$k]}">{$lang_photoshop_admin['download_zip']}</a></span><br>
                <span style="float:right;"><a href="mailto:{$user_email[$k]}">{$user_email[$k]}</a></span>
                <span style="cursor:pointer" onclick="window.location='index.php?file=photo_shop/photo_shop_admin&amp;oid={$oid[$k]}&amp;box={$box}';">{$lang_photoshop_admin['order_id']}: {$oid[$k]}&nbsp;&nbsp;- &nbsp;&nbsp;{$lang_photoshop_admin['user_id']}: {$uid_tmp[$k]}</span>
            </div>

        </td>
        <td class="alt2" align="center" style="padding:0px"><input type="checkbox" name="orders[{$oid[$k]}]" value="{$oid[$k]}" /></td>
    </tr>

EOT;

for the order details (added a new back button):
(http://www.vmm-is.de/files/cpg_shop/Uebersicht_Bestelldetails.jpg)

replaced:
Code: [Select]
echo <<<EOT

<table class=" " cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
<thead>
<tr>

<td class="tablef" align="right" colspan="4">
<div class="smallfont">
{$lang_photoshop_admin['SelectedOrders']}
<select name="dowhat_item" class="listbox">
<option value="mark_payed">{$lang_photoshop_admin['mark_payed']}</option>
<option value="mark_unpayed">{$lang_photoshop_admin['mark_unpayed']}</option>
<option value="mark_sent">{$lang_photoshop_admin['mark_sent']}</option>
<option value="mark_unsent">{$lang_photoshop_admin['mark_unsent']}</option>
<option value="delete_orders">{$lang_photoshop_admin['delete']}</option>
</select>
<input type="hidden" name="box" value="{$box}" />
<input type="hidden" name="oid" value="{$oid}" />
<input type="submit" class="button" value="{$lang_photoshop_admin['go']}" />
</div>
</td>
</tr>
    <tr>
              <td colspan="5" style="padding: 0px;">
                      <table width="100%" cellspacing="0" cellpadding="0">
                              <tr>
                                      {$tabs}
                              </tr>
                      </table>
              </td>
    </tr>
</thead>
</table>
</form>
</tr></td></table>


<table class="pms_legend" cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
<tr><td><img src="{$THEME_DIR}images/s_neg.gif" border="0" alt="" /></td><td class="smallfont">&nbsp;&nbsp;{$lang_photoshop_admin['pos']}</td></tr>
<tr><td><img src="{$THEME_DIR}images/s_pos.gif" border="0" alt="" /></td><td class="smallfont">&nbsp;&nbsp;{$lang_photoshop_admin['neg']}</td></tr>
EOT;

with:
Code: [Select]
echo <<<EOT

<table class=" " cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
<thead>
    <tr>

        <td class="tablef" align="right" colspan="4">
            <input class="button" style="float: left;" type="button" value={$lang_photoshop['back']} onclick="window.location='index.php?file=photo_shop/photo_shop_admin&amp;box={$box}';"/>
            <div class="smallfont">
                {$lang_photoshop_admin['SelectedOrders']}
                <select name="dowhat_item" class="listbox">
                    <option value="mark_payed">{$lang_photoshop_admin['mark_payed']}</option>
                    <option value="mark_unpayed">{$lang_photoshop_admin['mark_unpayed']}</option>
                    <option value="mark_sent">{$lang_photoshop_admin['mark_sent']}</option>
                    <option value="mark_unsent">{$lang_photoshop_admin['mark_unsent']}</option>
                    <option value="delete_orders">{$lang_photoshop_admin['delete']}</option>
                </select>
                <input type="hidden" name="box" value="{$box}" />
                <input type="hidden" name="oid" value="{$oid}" />
                <input type="submit" class="button" value="{$lang_photoshop_admin['go']}" />
            </div>
        </td>
    </tr>
    <tr>
              <td colspan="5" style="padding: 0px;">
                      <table width="100%" cellspacing="0" cellpadding="0">
                              <tr>
                                      {$tabs}
                              </tr>
                      </table>
              </td>
    </tr>
</thead>
</table>
</form>
</tr></td></table>


<table class="pms_legend" cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
<tr><td><img src="{$THEME_DIR}images/s_neg.gif" border="0" alt="" /></td><td class="smallfont">&nbsp;&nbsp;{$lang_photoshop_admin['pos']}</td></tr>
<tr><td><img src="{$THEME_DIR}images/s_pos.gif" border="0" alt="" /></td><td class="smallfont">&nbsp;&nbsp;{$lang_photoshop_admin['neg']}</td></tr>
EOT;

new in $lang_photoshop for this:
Code: [Select]
  'catalog'     => 'Katalog',
  'imagename'   => 'Dateiname',
  'back'        => 'zurück',
  'details'     => 'details',

well those changes are only marginal, but I think they bring in a good improvement for the usability :P

I also added the User email adress to the mail sent to the admin and blew up the info table send in the mail to this:
Code: [Select]
   Item ID                      Dateiname     Format     Anzahl           Preis                                       Katalog

         1                    Ina_Reimers        4x6          1       EUR  2.00                      Bilder/TestVA/Testalbum/

         5         Siegerehrung_E-Dressur        4x6          1       EUR  2.00                      Bilder/TestVA/Testalbum/
(I dont describe it, because had been done already in another thread)

also I changed the table displayed for the users in the checkout to:
(http://www.vmm-is.de/files/cpg_shop/Aufstellung_Bestellung_vor_OK.jpg)

Maybe u think, some of those changes are worth it to be taken over into the next code review :P
Logged

jesphoto

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Shopping cart
« Reply #375 on: October 15, 2007, 07:19:01 pm »

Will I be able to sell zipped photos?.I have a oscommerce running, but I am tied of so many bugs.
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Shopping cart
« Reply #376 on: October 15, 2007, 07:29:44 pm »

I'm not sure what you mean with zipped photos... but try and you'll see

Freder

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 8
    • Galerie Fotografii - Alfred Broda
Re: Shopping cart
« Reply #377 on: October 15, 2007, 07:57:12 pm »

I think it means 'compressed with zip'. There is no such option right now, automatic that is: you can customize the 'add to CD' option. In CPG there is the option of downloading favourites in a zip archive, but it's not connected to the shop (yet?).

BTW Is there an option to enable some items locally (per album) and have them disabled in all the rest? Will setting the global price to 0 work that way?
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Shopping cart
« Reply #378 on: October 15, 2007, 10:19:01 pm »

The admin can download orders as zip...

you can disable single albums but not items in an album

krp

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Shopping cart
« Reply #379 on: October 20, 2007, 06:24:18 pm »

Hi Stramm,

can i change the place of menu for "add" button and box for prices with sizes. In my gallery it stay on the right side and make white frame around the picture very big(i use 500pix pictures), when i use black background from theme. Maybe if it stay in the middle?

   http://www.sportnitanci.com/webga/displayimage-3393.html

Thank you!

Kalin
Logged
Pages: 1 ... 15 16 17 18 [19] 20 21 22 23 ... 30   Go Up
 

Page created in 0.031 seconds with 20 queries.