Author Topic: [Mod] [Beta] Shop Mod für 4images (no support)  (Read 265400 times)

0 Members and 1 Guest are viewing this topic.

Offline JLT

  • Pre-Newbie
  • Posts: 2
    • View Profile
Re: [Mod] [Beta] Shop Mod für 4images
« Reply #75 on: June 10, 2005, 05:14:41 PM »
Ok I think that's clear! Thanx! But now I am running the script and I am getting the following erroro from the server.

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Parse error: parse error in /home/httpd/vhosts/cafethequestion.nl/httpdocs/4images/includes/functions.php on line 226

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/httpd/vhosts/cafethequestion.nl/httpdocs/4images/includes/functions.php:226) in /home/httpd/vhosts/cafethequestion.nl/httpdocs/4images/includes/sessions.php on line 84

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/httpd/vhosts/cafethequestion.nl/httpdocs/4images/includes/functions.php:226) in /home/httpd/vhosts/cafethequestion.nl/httpdocs/4images/includes/sessions.php on line 84

Warning: Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/cafethequestion.nl/httpdocs/4images/includes/functions.php:226) in /home/httpd/vhosts/cafethequestion.nl/httpdocs/4images/includes/sessions.php on line 92

Warning: Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/cafethequestion.nl/httpdocs/4images/includes/functions.php:226) in /home/httpd/vhosts/cafethequestion.nl/httpdocs/4images/includes/sessions.php on line 92

Parse error: parse error in /home/httpd/vhosts/cafethequestion.nl/httpdocs/4images/includes/page_header.php on line 227

Fatal error: Call to undefined function: get_categories() in /home/httpd/vhosts/cafethequestion.nl/httpdocs/4images/index.php on line 78
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Am I missing something? Or am I doing something wrong? :?



This is my function.php file from line 225 to 239
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  if ($user_info['user_level'] != GUEST && $image_row['price_1'] != 0) {
    $warenkorb_url = $self_url;
    $warenkorb_url .= (!empty($mode)) ? ((preg_match("/\?/", $warenkorb_url)) ? "&" : "?")."mode=".$mode : "";
    $warenkorb_url .= preg_match("/\?/", $warenkorb_url) ? "&" : "?";
    if (check_warenkorb($image_row['image_id'])) {
      $warenkorb_url .= "action=removefromwarenkorb&id=".$image_row['image_id'];
      $warenkorb_button = "<a href=\"".$site_sess->url($warenkorb_url)."\"><img src=\"".get_gallery_image("warenkorb_no_kl.gif")."\" border=\"0\" align=\"\" alt=\"Remove item from shopping cart\" /></a>";
      $warenkorb_button_kl = "<a href=\"".$site_sess->url($warenkorb_url)."\"><img src=\"".get_gallery_image("warenkorb_no_kl.gif")."\" border=\"0\" align=\"\" alt=\" Remove item from shopping cart \" /></a>";
    }
    else {
      $warenkorb_url .= "action=addtowarenkorb&amp;id=".$image_row['image_id'];
      $warenkorb_button = "<a href=\"".$site_sess->url($warenkorb_url)."\"><img src=\"".get_gallery_image("warenkorb_yes_kl.gif")."\" border=\"0\" align=\"\" alt=\" Add to shopping cart\" /></a>";
      $warenkorb_button_kl = "<a href=\"".$site_sess->url($warenkorb_url)."\"><img src=\"".get_gallery_image("warenkorb_yes_kl.gif")."\" border=\"0\" align=\"\" alt=\" Add to shopping cart\" /></a>";
    }
  }


Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Mod] [Beta] Shop Mod für 4images
« Reply #76 on: June 11, 2005, 12:22:25 AM »
Am I missing something? Or am I doing something wrong? :?
yes, probably somewhere above the line the error message pointing to.
inserted in a wrong place? missed a bracket?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Joachim

  • Newbie
  • *
  • Posts: 31
    • View Profile
    • http://www.objektivpress.de
Re: [Mod] [Beta] Shop Mod für 4images
« Reply #77 on: June 11, 2005, 09:16:10 PM »
hallo wer kann mir helfen - das shop mod - kann das auch in die 4images-version 1.71 eingebaut werden ??

Offline bine

  • Full Member
  • ***
  • Posts: 150
    • View Profile
    • art-stylers free Stockphotos,  Website-Templates and e-cards
Re: [Mod] [Beta] Shop Mod für 4images
« Reply #78 on: June 23, 2005, 05:49:47 PM »
Hi,

I've read that only registered Users can use the shop.
I tried to make some changes to realize that also unregistered clients can buy a picture.

I deleted in functions.php this part
Code: [Select]
$user_info['user_level'] != GUEST &&
in page_header.php I changed
Code: [Select]
if ($user_info['user_level'] >= USER) {to
Code: [Select]
if ($user_info['user_level'] >= GUEST) {
and commented out ind warenkorb.php this code
Code: [Select]
/*
if ($user_info['user_level'] == GUEST || $user_info['user_level'] == USER_AWAITING) {
  show_error_page($lang['warenkorb_register']);
}
*/

In this case a guest has the right to add something in the basket, but all other guests have also this article in their basket.

I think the Informations they give during the order precedure  is  all what the seller must know. But I don't know how to identify the single client during the order.

Is it possible and what must I do to change the mod, that unregistered clients can buy something?
:) bine


Offline bine

  • Full Member
  • ***
  • Posts: 150
    • View Profile
    • art-stylers free Stockphotos,  Website-Templates and e-cards
Re: [Mod] [Beta] Shop Mod für 4images
« Reply #79 on: June 28, 2005, 11:12:59 AM »
Hi,

I'm a little bit lost with this mod.
in Oct. 2004 I installed this successfully for art-stylers.de

Now I want to install this with 4images 1.71

I found in the meanwhile an acceptable solution for the shopping of non registered users. I integrated the registration during the order procedure.

My problems are:

1. The order procedure runs fine, but no entrys of client Dates arrive the Database. no error-message appears. I controled the table and the fields, its all available.

2. in admin-cp appears no client-list. I get this error message:
Quote
Warning: main(./../admin/admin_global.php): failed to open stream: No such
file or directory in
/Library/Apache2/htdocs/_mysite/4images/admin/plugins/kundendaten.php
on line 30

Fatal error: main(): Failed opening required './../admin/admin_global.php'
(include_path='.:/Library/PHP4/lib/php') in
/Library/Apache2/htdocs/_mysite/4images/admin/plugins/kundendaten.php
on line 30

line 30 in kundendaten.php looks like this:
Code: [Select]
require(ROOT_PATH.'admin/admin_global.php');

and admin/admin_global.php is on his place in 4images/admin/admin_global.php

Is this a file properties Problem? or a Path Problem? I don't know where I must search for.
Or do I have general Problems with this mod in Version 1.71 ?

I hope anyone can help me out with this?
:) bine


Offline bine

  • Full Member
  • ***
  • Posts: 150
    • View Profile
    • art-stylers free Stockphotos,  Website-Templates and e-cards
Re: [Mod] [Beta] Shop Mod für 4images
« Reply #80 on: June 29, 2005, 06:13:47 PM »
Hi, the second point is solved. Kundendaten List in admin cp appears since I wrote in admin/plugins/kundendaten.php
Code: [Select]
$_SERVER['PHP_SELF']instead only php_self

All of the shop now runs fine. But the most urgent function not :(

I get no entrys in the Database-client-fields and no email for seller and client.
no error message appears.

Please can anyone help me. Where must I look for  :?:

german -----------------------

Hi, Der zweite Punkt meines vorherigen Postings ist gelöst. Die Kundendaten-Liste im admin-cp wird angezeigt seitdem ich
Code: [Select]
$_SERVER['PHP_SELF'] anstatt nur php_self in admin/plugins/kundendaten.php geschrieben habe.

Aber mein Hauptproblem besteht immer noch. Ich weiß nicht wo ich noch suchen soll. Trotz fehlerlosem Bestellablauf werden keine Kundendaten in die Datenbankfelder geschrieben und es wird auch keine Bestellungs email und Auftragsbestätigung herausgeschickt.

Bitte kann mir wenigstens Jemand helfen an welcher Stelle ich ungefähr suchen muß  :?:  Ich habe die Dateien alle mit meinem laufenden Testshop verglichen und sehe keinen Unterschied.




:) bine


Offline bine

  • Full Member
  • ***
  • Posts: 150
    • View Profile
    • art-stylers free Stockphotos,  Website-Templates and e-cards
Re: [Mod] [Beta] Shop Mod für 4images
« Reply #81 on: July 03, 2005, 04:12:55 PM »
OK, another problem is solved. The reason why no client Dates appeard in the database was, that the server was modified with register_globals off

Since php 4.2 off  is the global setting.

When you have the same problem add this  little script in your global.php
Code: [Select]
// -------------- edit solve problem with register globals off ------ //
if (isset($HTTP_GET_VARS))
extract($HTTP_GET_VARS);
if (isset($HTTP_POST_VARS))
extract($HTTP_POST_VARS);
// --------------- end edit -------------- //

-------------------------

So I have only one more problem with this funny ;) installation

The gallery doesen't sent any emails. no email confirmation of order and no email from the admin-cp. But no error message appears.
I looked at the code 1000 times, and I must see that the same files used on another server works fine. So I think in this installation it must be the server configuration that don't allow the gallery to sent emails. I will ask the server Admin about the rights that must be given to sent emails. Myself I have no own server, and I don't know what he must change.

Does anyone here know about the rights for sending emails in the server Administration? What must he do? What should I tell him to do?


PS: SantaZ
Quote
hallo,

auf den alten Seiten gab es noch ein SQLquery womit man in einem rutsch die kompletten Preise editieren kann.

Kann mir mal bitte jemand sagen wie dieser Query aussehen muss?

I bump this posting from SantaZ up because I also need a function to set for more than 1000 images the same price in one step. How is this possible?
:) bine


Offline nika2000

  • Jr. Member
  • **
  • Posts: 64
    • View Profile
OUT OF STOCK
« Reply #82 on: July 07, 2005, 03:15:07 PM »
HI!

I just installed the Shop-skript from http://www.rustynet.de/cat187.html .
But I have the problem that there are some gif's missing, for example warenkorb_off_kl.gif and also, at all the pictures is written "out of stock"...
How can I get them "in stock"?

thanx for help
Nika2000

Offline nika2000

  • Jr. Member
  • **
  • Posts: 64
    • View Profile
Different prices for one picture?
« Reply #83 on: July 07, 2005, 03:29:00 PM »
Hi,

I just found the function to get the pictures "in Stock", I had to add an price  :lol:.
But now, I have another question: is it possible to add more then one price on one picture?
I'd like to have different prices for different sizes of prints for one picture...
For example something like this: http://www.isipixx.de/view.cfm?foto=18267

mfg
Nika2000

Offline nika2000

  • Jr. Member
  • **
  • Posts: 64
    • View Profile
Where can I find order-inforamtions?
« Reply #84 on: July 07, 2005, 03:53:20 PM »
Hi!

Another question:
Where I can't find the orders form the users?!
I got a mail but I dont see which pictures were ordered :-(

mfg
Nika2000

Offline fotograf74

  • Newbie
  • *
  • Posts: 29
    • View Profile
Re: [Mod] [Beta] Shop Mod für 4images
« Reply #85 on: July 11, 2005, 05:55:23 PM »
How can I realize:

- Download the Original picture after the order
- create for example one price for one category

Offline goodfred

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: [Mod] [Beta] Shop Mod für 4images
« Reply #86 on: July 18, 2005, 12:39:38 PM »
Hallo

hach der Installation des Shop Mod bekommen ich bei

PlugIns /Customer  diese Fehlermeldung:   - Ist mir ein Rästel

Warning: main(): Unable to access ./../admin/admin_global.php in /mnt/ja2/08/248/00000001/htdocs/galerie/admin/plugins/kundendaten.php on line 30

Warning: main(./../admin/admin_global.php): failed to open stream: No such file or directory in /mnt/ja2/08/248/00000001/htdocs/galerie/admin/plugins/kundendaten.php on line 30

Fatal error: main(): Failed opening required './../admin/admin_global.php' (include_path='.:/opt/RZphp4/includes') in /mnt/ja2/08/248/00000001/htdocs/galerie/admin/plugins/kundendaten.php on line 30


Wer kann helfen...? - Danke

Offline fotograf74

  • Newbie
  • *
  • Posts: 29
    • View Profile
Re: [Mod] [Beta] Shop Mod für 4images
« Reply #87 on: July 31, 2005, 12:02:41 AM »
Nobody can help me?

- Directly download the Original picture without a watermark after the order
- create for example one price for one category. so I can faster change the price.

The next stage:
- different price for different image quality and so different downloads like the image quality

Who can help me???

Offline nika2000

  • Jr. Member
  • **
  • Posts: 64
    • View Profile
More then one price per picture?
« Reply #88 on: August 10, 2005, 02:05:30 PM »
Hi,

Is it possible to change this mod to add more then one price for one picture?
I'd like to have different prices for different sizes of prints for one picture...
For example something like this: http://www.isipixx.de/view.cfm?foto=18267
Can anyone help? I don't know php well :-(

mfg
Nika2000

TheOracle

  • Guest
Re: [Mod] [Beta] Shop Mod für 4images
« Reply #89 on: August 10, 2005, 02:24:08 PM »
Quote

Is it possible to change this mod to add more then one price for one picture?


If I understand you correctly, you'd like to have a dropdown form so users could have more than a simple choice per picture.

Correct ?