[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4752: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4754: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4755: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4756: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
 OpenForum.dk • Vis emne - lager status = 0, derefter ingen mulighed for "køb nu&a

lager status = 0, derefter ingen mulighed for "køb nu&a

Danske moduler, eller oversættelser til engelske moduler.

Redaktør: Redaktionen

lager status = 0, derefter ingen mulighed for "køb nu&a

Indlægaf elektronik-butik.dk » 2006-08-10 22:33

MVH. Anders Pedersen / Elektronik-butik.dk
URL: www.elektronik-butik.dk

- Salg af dioder og tilbehør!
elektronik-butik.dk
Novice
Novice
 
Indlæg: 11
Tilmeldt: 2006-01-8 14:08

Indlægaf kirneh » 2006-08-11 08:48

kirneh
Godt igang
Godt igang
 
Indlæg: 155
Tilmeldt: 2006-02-15 10:36

Indlægaf elektronik-butik.dk » 2006-08-11 18:34

MVH. Anders Pedersen / Elektronik-butik.dk
URL: www.elektronik-butik.dk

- Salg af dioder og tilbehør!
elektronik-butik.dk
Novice
Novice
 
Indlæg: 11
Tilmeldt: 2006-01-8 14:08

Indlægaf olby » 2006-08-12 00:27

Mvh olby
Hjælp til selvhjælp: Giv din kollega konstruktiv kritik og eller vejledning - tak :).
Brugeravatar
olby
Administrator
Administrator
 
Indlæg: 2552
Tilmeldt: 2003-01-1 22:27
Geografisk sted: Odder

Indlægaf KG » 2006-08-13 12:39

Uden Openforum havde jeg ALDRIG fundet ud af Oscommerce!!
Brugeravatar
KG
Godt igang
Godt igang
 
Indlæg: 73
Tilmeldt: 2005-10-22 02:11
Geografisk sted: Århus

Indlægaf elektronik-butik.dk » 2006-08-13 18:18

MVH. Anders Pedersen / Elektronik-butik.dk
URL: www.elektronik-butik.dk

- Salg af dioder og tilbehør!
elektronik-butik.dk
Novice
Novice
 
Indlæg: 11
Tilmeldt: 2006-01-8 14:08

Indlægaf ladylone » 2006-08-13 19:03

Hej
Et hurtigt simpelt forslag.
Følgende checker lagerantal og viser kun "køb knap", hvis lager er større end nul.

MEN da det først er ved checkout, at lager bliver ajourført vil det ved positivt lagerantal ved session-start være muligt at se "køb-knappen" under hele sessionen, selvom antallet af varer i indkøbskurven på et tidspunkt skulle overstige antallet af varer på lager (det kunne klares ved at fratrække de aktuelle varer i indkøbskurven, men kræver lidt mere kode).

Ændringerne omhandler filerne product_info, product_listing og products_new samt hovedsprogfilen.
Jeg kan ikke lige huske om der er "køb-knapper" i andre filer, men princippet er det samme.

Teksten "Udsolgt" defineres i hovedsprogfilen, da teksten skal bruges i flere filer.
Find kode for "køb-knappen" og erstat linjen med: if (lager>0) {vis køb-knap} else {vis udsolgt-tekst}



catalog/includes/languages/danish.php
//
// tilføj et vilkårlig sted, og ligeledes i eventuelle andre "hovedsprogfiler"
define('INGEN_PAA_LAGER_TEKST', 'Udsolgt');
//
//



catalog/product_info.php
...
...
<td class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params()) . '">' . tep_image_button('button_reviews.gif', IMAGE_BUTTON_REVIEWS) . '</a>'; ?></td>

<!-- følgende udkommenteres
<td class="main" align="right"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?></td>
-->


<!-- tilføjelse start -->
<?php
if (tep_get_products_stock($product_info['products_id']) > 0) {
?>
<td class="main" align="right"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?></td>
<?php
} else {
?>
<td class="main" align="right"><?php echo INGEN_PAA_LAGER_TEKST; ?></td>
<?php
}
?>
<!-- tilføjelse slut -->


<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
...
...



catalog/includes/modules/product_listing.php
...
...
break;
case 'PRODUCT_LIST_BUY_NOW':
$lc_align = 'center';

// følgende udkommenteres
// $lc_text = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a>&nbsp;';
//


// tilføjelse start
if (tep_get_products_stock($listing['products_id']) > 0) {
$lc_text = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a>&nbsp;';
} else {
$lc_text = '&nbsp;' . INGEN_PAA_LAGER_TEKST . '&nbsp;';
}
// tilføjelse slut

break;
...
...



catalog/products_new.php
...
...
<td valign="top" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_new['products_id']) . '"><b><u>' . $products_new['products_name'] . '</u></b></a><br>' . TEXT_DATE_ADDED . ' ' . tep_date_long($products_new['products_date_added']) . '<br>' . TEXT_MANUFACTURER . ' ' . $products_new['manufacturers_name'] . '<br><br>' . TEXT_PRICE . ' ' . $products_price; ?></td>

<!-- følgende udkommenteres
<td align="right" valign="middle" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCTS_NEW, tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $products_new['products_id']) . '">' . tep_image_button('button_in_cart.gif', IMAGE_BUTTON_IN_CART) . '</a>'; ?></td>
-->


<!-- tilføjelse start -->
<?php
if (tep_get_products_stock($products_new['products_id']) > 0) {
?>
<td align="right" valign="middle" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCTS_NEW, tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $products_new['products_id']) . '">' . tep_image_button('button_in_cart.gif', IMAGE_BUTTON_IN_CART) . '</a>'; ?></td>
<?php
} else {
?>
<td align="right" valign="middle" class="main"><?php echo INGEN_PAA_LAGER_TEKST; ?></td>
<?php
}
?>
<!-- tilføjelse slut -->


</tr>
<tr>
<td colspüan="3"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
...
...



Håber der er til at forstå, og at det var noget i den stil i eftersøgte.
Skriv lige om effekten, så andre ved om det kan bruges eller ikke bruges.
Blot et hurtigt forslag. Brug det, drop det eller arbejd videre med det.
MVH
Claus
ladylone
Oldtimer :o)
Oldtimer :o)
 
Indlæg: 851
Tilmeldt: 2006-02-25 17:24
Geografisk sted: Hillerød

Indlægaf ladylone » 2006-08-13 20:25

Hej

Lagde iøvrigt lige mærke til en spøjs kode.
Nederst i products_new står <td colspüan="3">
Det er vist en tastefejl men det betyder ikke noget for den tomme linje.
MVH
Claus
ladylone
Oldtimer :o)
Oldtimer :o)
 
Indlæg: 851
Tilmeldt: 2006-02-25 17:24
Geografisk sted: Hillerød

Indlægaf Helle » 2006-10-28 15:59

Har nogen afprøvet ladylones kode??

Helle :-)
Helle
Godt igang
Godt igang
 
Indlæg: 126
Tilmeldt: 2006-10-21 15:53

Indlægaf thomasrl » 2006-10-29 00:12

Hey,

Har ikke tjekket, men kan det være denne contrib ladylone har vist:

http://www.oscommerce.com/community/contributions,4549
Med venlig hilsen

Thomas Larsen

kaffeagenterne.dk - vi jagter den gode smag!
Rå kaffebønner til hjemmeristning, kafferistere, kaffekværne m.m.
thomasrl
Godt igang
Godt igang
 
Indlæg: 48
Tilmeldt: 2006-02-2 20:51
Geografisk sted: Århus

Indlægaf scarlet » 2006-11-4 01:53

scarlet
Novice
Novice
 
Indlæg: 8
Tilmeldt: 2006-10-8 18:15

Indlægaf ladylone » 2006-11-6 22:42

Hej Pia

Hvis du ikke vil have teksten kan du udelade INGEN_PAA_LAGER_TEKST samt tilhørende php-kode:

...
} else {
?>
<td align="right" valign="middle" class="main"></td>
<?php
}
?>
<!-- tilføjelse slut -->

Eller du kan definere INGEN_PAA_LAGER_TEKST som en tom tekst i sprogfilen:
catalog/includes/languages/danish.php
...
//
// tilføj et vilkårlig sted, og ligeledes i eventuelle andre "hovedsprogfiler"
define('INGEN_PAA_LAGER_TEKST', '');
//
//
...
MVH
Claus
ladylone
Oldtimer :o)
Oldtimer :o)
 
Indlæg: 851
Tilmeldt: 2006-02-25 17:24
Geografisk sted: Hillerød

Re: lager status = 0, derefter ingen mulighed for "køb nu&a

Indlægaf happypet.dk » 2009-07-22 21:25

Hvad skal der stå istedet for

<td align="right" valign="middle" class="main"><?php echo INGEN_PAA_LAGER_TEKST; ?></td>

Hvis det er et billede som jeg vil isættet i stedet for tekst???
happypet.dk
Novice
Novice
 
Indlæg: 20
Tilmeldt: 2009-02-9 20:52


Tilbage til Moduler

Hvem er online

Brugere der læser dette forum: Ingen tilmeldte og 8 gæster

cron