Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Ampel konfigurieren


ho64

Recommended Posts

Hallo!

Habe ein Problemchen mit der Ansicht meiner Verfügbarkeits Ampel!

Habe die Stock Display (Images or Text) als Anweisung genutzt und soweit funktioniert das auch schon halbwegs!

ABER!!!!!

Die erscheint nicht da wo sie hinsoll.

Ich würde sie gerne über dem Preis haben.

An welcher Stelle muss den dann der codesnip in der produkt_info.php eingebaut werden.

Außerdem bräuchte nen Tipp,wie man folgendes realisieren kann:

Da ich mit Antiken,gebrauchten und Restposten handele,sind die meisten Artikel nur 1 mal verfügbar

bzw. können die nicht nachgeliefert,bestellt oder ähnliches werden.

Die Ampel sagt aber das die Artikel in bestimmten Tagen wieder lieferbar wären.Das muss da geändert werden.

Hier gehts zu meinem Shop(noch nicht geöffnet)

Mein SHOP

Falls ihr meine produktinfo.php sehen wollt,kann ich euch den quellcode auch noch posten.

Link to comment
Share on other sites

  • 2 weeks later...

fragt sich gerade nur was elmar mit einer (lager) ampel funktion zu tun hat!?

greetz john

Wenn Du richtig lesen würdest , dann wüsstest du , das ich hier nach dem Contrib Ampel gefragt habe und nicht nach Elmar

¨

Elmar ist ein anderer Thread.

Da fällt mir ein , wer lesen kann ist klar im Vorteil

Link to comment
Share on other sites

Wenn Du richtig lesen würdest , dann wüsstest du , das ich hier nach dem Contrib Ampel gefragt habe und nicht nach Elmar

¨

Elmar ist ein anderer Thread.

Da fällt mir ein , wer lesen kann ist klar im Vorteil

sicher da hast du recht, wer lesen kann ist sicherlich im vorteil, deswegen postest du in deinem post #5 einen link zu elmar, weil ich dir gesagt habe du sollst nach ampel und ampel system suchen!

greetz john

Link to comment
Share on other sites

Hallo,

die Contrib habe ich auch mal gesucht und nicht gefunden.

Kannst Du mir den link posten ?

Gruss

Ralf

Hallo Ralf in der contrib ist nur eine Textdatei mit Einbauanleitung.

Hier ist der Inhalt dieser Anleitung:

Musst ein wenig suchen,wo du sie am besten platzierst!

Etwas HTML und PHP Kenntnisse vorausgesetzt.

(programmieren ist da keine bedingung - musst nur nen guter Handwerker mit Hirn und Geduld sein)

Gruß Heike

Product Stock Information with Images or Text

=============================================

Determines how many products you have left in stock which can be displayed via text or images (or both) in your catalog:

Displays a customised graphic (either In stock, Limited Stock, or Sold Out).

Heaviness: easy

Time: approx. 5 minutes,

extra time, if you wish to create your own images

Original: Special thanks to the initial contribution created by Gary Burton for the text code of this contribution and Linda McGrath for help in addressing the new code.

The Main-Work was done by James Giancotti

I only added the language-file support and wrote a new installation-instruction.

*** I. Backup ***

=================

You have to backup only these files:

- /product_info.php

- /includes/languages/english/product_info.php

- /includes/languages/german/product_info.php

and maybe some other languages-files. Depence on your shop...

*** II. Insert into /product_info.php ***

=========================================

Paste the following code somewhere into your product_info.php page. Anywhere on the page is fine (totally up to you).

You should change the case #.

<?php

$prod_quantity = tep_get_products_stock($products_id);

switch ($prod_quantity) {

case 0: // change this to a quantity you want - it's the for "available on request"

print '<img src="images/verfuegbarkeit/weiss.gif" border="0" title="" alt="' . TEXT_VERFUEGBARKEIT_WHITE . '"> ' . TEXT_VERFUEGBARKEIT_WHITE .' </font>';

break;

case 1: // change this to a quantity you want - it's the number for "available within 10 workdays"

print '<img src="images/verfuegbarkeit/gelb.gif" border="0" title="" alt="' . TEXT_VERFUEGBARKEIT_YELLOW . '"> ' . TEXT_VERFUEGBARKEIT_YELLOW . ' </font>';

break;

default: //if the quantity is not 1 or 0, this text will be shown.

print '<img src="images/verfuegbarkeit/gruen.gif" border="0" title="" alt="' . TEXT_VERFUEGBARKEIT_GREEN . '"> ' . TEXT_VERFUEGBARKEIT_GREEN . ' </font>';

}

?>

*** III. Insert into /includes/english/product_info.php ***

===========================================================

Insert at the end of /includes/laguages/english/product_info.php bevor the ?>

define('TEXT_VERFUEGBARKEIT_WHITE', 'available on request');

define('TEXT_VERFUEGBARKEIT_YELLOW', 'available within 10 workdays');

define('TEXT_VERFUEGBARKEIT_GREEN', 'available from stock');

*** IV. Insert into /includes/german/product_info.php ***

===========================================================

Insert at the end of /includes/laguages/german/product_info.php bevor the ?>

define('TEXT_VERFUEGBARKEIT_WHITE', 'Artikel auf Anfrage verfügbar');

define('TEXT_VERFUEGBARKEIT_YELLOW', 'Artikel innerhalb von 10 Tagen lieferbar');

define('TEXT_VERFUEGBARKEIT_GREEN', 'auf Lager');

If you have different languages, like spanish, french... you have to insert this, too!

*** V. Save the files, copy them to your Server ***

===================================================

After saving an copying the files to yout server - all work is done! Sorry, for my bad english - hope you understand the importand parts of the instruction ;)

milliway42

Link to comment
Share on other sites

×
×
  • Create New...