[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/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 - Indkøbskurv med fragt og ordre total.

Indkøbskurv med fragt og ordre total.

Udbygger du din osC-shop med flere moduler, eller er du faldet over et godt modul, så brug dette forum.
Både spørgsmål og indlæg er velkomne her.

Redaktør: Redaktionen

Indkøbskurv med fragt og ordre total.

Indlægaf BPE » 2009-06-22 23:51

Efterlysning!
Er der en derude, der kender en contrib, hvor man kan få fragtprisen med i sin indkøbskurv?
Jeg bruger Kenniths pakke, hvor jeg kører med fast takst på forsendelse.
Guide til de . Vi tester bla. og .
BPE
Novice
Novice
 
Indlæg: 26
Tilmeldt: 2008-10-26 20:07

Re: Indkøbskurv med fragt og ordre total.

Indlægaf succeed » 2009-06-25 11:58

Mangler nøjagtigt det samme funktionalitet.

Indkøbskurven fra Golden Planet dog uden valuta er et godt bud, er der nogle der kan sige om dette er en contribution?
http://webshopdemo.dk/da/
Venlig Hilsen
D.B.Larsen
Godt & Gave - Gaveartikler, kunst og livsstil
succeed
Godt igang
Godt igang
 
Indlæg: 84
Tilmeldt: 2006-09-24 17:19
Geografisk sted: Hedehusene

Re: Indkøbskurv med fragt og ordre total.

Indlægaf agentjensen » 2009-06-25 12:14

Prøv at søge lidt på oscommerce - det findes der - det er dog estimeret fragt - da man jo vælger senere i processen

Mvh

AgentJensen
KUN en tåbe frygter ikke PHP :-)
agentjensen
Ekspert medlem
Ekspert medlem
 
Indlæg: 1418
Tilmeldt: 2007-01-4 17:47
Geografisk sted: Halskov v/Skive

Re: Indkøbskurv med fragt og ordre total.

Indlægaf BPE » 2009-06-25 14:44

Jeg har fundet et par contribs, men kunne godt tænke mig noget, der er lidt mere simpelt.
Som nævnt kører jeg med fast takst, og ville gerne have dette med i min Shopping_cart infoboks.

Det kunne se således ud:

Ialt xxx DKK (denne har jeg allerede)
Forsendelse xxx DKK
Ordre total xxx DKK


Min Shopping_cart ser således ud:

<?php
/*
$Id: shopping_cart.php,v 1.18 2003/02/10 22:31:06 hpdl Exp $

osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright (c) 2003 osCommerce

Released under the GNU General Public License

*/
?>
<!-- shopping_cart //-->
<tr>
<td class="infoBoxContainer">
<?php
echo '<table border="0" width="100%" cellspacing="0" cellpadding="2" class="myInfoBoxHeading"><tr><td class="myInfoBoxHeading"><td width="100%">&nbsp;' . BOX_HEADING_SHOPPING_CART . '</td><td>
<a href="http://www.tools4work.dk/shopping_cart.php?osCsid=1838g0g740aa9jovdbmisa7ei5"><img src="mediafiles/images/infobox/arrow_right.gif" border="0" alt="Vis detaljer" title=" Vis detaljer " width="14" height="15"></a>
</td></tr></table>';


// ############ Added CCGV Contribution ##########
// CREDIT CLASS script moved by Rigadin in v5.13 for compatibility with STS
$cart_contents_string ="
<script language=\"javascript\">
function couponpopupWindow(url) {
window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=450,height=280,screenX=150,screenY=150,top=150,left=150')
}
//--></script>";

// $cart_contents_string = '';
// ############ End Added CCGV Contribution ##########

// $cart_contents_string = '';
if ($cart->count_contents() > 0) {

// start of content

// This creates the tabel used to control the display of the cart contents cellpadding changed to 1 to add a little space
// between pictures and added a class to give seperatecontrol over this info

// ############ Added CCGV Contribution ##########
$cart_contents_string = '<table border="0" width="100%" cellspacing="0" cellpadding="0" class"cartInfoBox">';
$cart_contents_string .= '<table border="0" width="100%" cellspacing="0" cellpadding="0" class"cartInfoBox">'; // Modified in v5.13 by Rigadin for STS compatibility
// ############ End Added CCGV Contribution ##########
//$cart_contents_string = '<table border="0" width="100%" cellspacing="0" cellpadding="0">';
$products = $cart->get_products();
for ($i=0, $n=sizeof($products); $i<$n; $i++) {

//makes the <tr> and starts the fist cell in the row that contains the number of items
// Changed the class name to allow seperate control from the stylesheet of the content and changed the valign from top to middle to center it with respect to the image
$cart_contents_string .= '<tr><td align="right" valign="middle" class="cartInfoBoxContents">';

// This section adds a span with a class to the first cell depending on if it's the latest product or an existing
// changed the name of the classes to consistency in the classes used

if ((tep_session_is_registered('new_products_id_in_cart')) && ($new_products_id_in_cart == $products[$i]['id'])) {
$cart_contents_string .= '<span class="cartInfoBoxContentsNew">';
} else {
$cart_contents_string .= '<span class="cartInfoBoxContents">';
}

// First part $cart_contents_string .= $products[$i]['quantity'] . '&nbsp;x&nbsp;</span></td>
// create the contents of the first cell showing how many of a given item that is in the cart followed by x

// second part <td valign="middle" class="cartInfoBoxContents"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '">';
// Starts the second cell and starts the link to the product in the catalog

$cart_contents_string .= $products[$i]['quantity'] . '&nbsp;x&nbsp;</span></td><td valign="middle" class="cartInfoBoxContents"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '">';

// This section adds a span with a class to the second cell depending on if it's the latest product or an existing
// changed the name of the classes to consistency in the classes used

if ((tep_session_is_registered('new_products_id_in_cart')) && ($new_products_id_in_cart == $products[$i]['id'])) {
$cart_contents_string .= '<span class="cartInfoBoxContentsNew">';
} else {
$cart_contents_string .= '<span class="cartInfoBoxContents">';
}

// The first part $cart_contents_string .= $products[$i]['name'] . '</span></a></td> ends the link in the secondcell and ends the second cell
// Then this <td>' . tep_image(DIR_WS_IMAGES . $products[$i]['image'], $products[$i]['name'], 40) . '</td></tr>'; starts the 3 cell containing the picture
// the number in $products[$i]['name'], 40 defines the width of the image

$cart_contents_string .= $products[$i]['name'] . '</span></a></td><td align="right" class="cartInfoBoxContentsPic">' . tep_image(DIR_WS_IMAGES . $products[$i]['image'], $products[$i]['name'], 40) . '</td></tr>';

if ((tep_session_is_registered('new_products_id_in_cart')) && ($new_products_id_in_cart == $products[$i]['id'])) {
tep_session_unregister('new_products_id_in_cart');
}
}

// This ends the tabel listing the products in the cart or displays the cart emty message if that is the case

$cart_contents_string .= '</table>';
} else {
$cart_contents_string .= BOX_SHOPPING_CART_EMPTY;
}

$info_box_contents = array();
$info_box_contents[] = array('text' => $cart_contents_string);

if ($cart->count_contents() > 0) {

// If there's anything ind the cart this draws a line under the products

$info_box_contents[] = array('text' => tep_draw_separator());

// 1st line aligns the total amount to the right 2nd line shows the total
$info_box_contents[] = array('align' => 'right',
'text' => 'I alt ' . $currencies->format($cart->show_total()) . '<br><br><a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . HEADER_TITLE_CHECKOUT . '</a>');
}

// ############ Added CCGV Contribution ##########
if (tep_session_is_registered('customer_id')) {
$gv_query = tep_db_query("select amount from " . TABLE_COUPON_GV_CUSTOMER . " where customer_id = '" . $customer_id . "'");
$gv_result = tep_db_fetch_array($gv_query);
if ($gv_result['amount'] > 0 ) {
$info_box_contents[] = array('align' => 'left','text' => tep_draw_separator());
$info_box_contents[] = array('align' => 'left','text' => '<table cellpadding="0" width="100%" cellspacing="0" border="0"><tr><td class="smalltext">' . VOUCHER_BALANCE . '</td><td class="smalltext" align="right" valign="bottom">' . $currencies->format($gv_result['amount']) . '</td></tr></table>');
$info_box_contents[] = array('align' => 'left','text' => '<table cellpadding="0" width="100%" cellspacing="0" border="0"><tr><td class="smalltext"><a href="'. tep_href_link(FILENAME_GV_SEND) . '">' . BOX_SEND_TO_FRIEND . '</a></td></tr></table>');
}
}
if (tep_session_is_registered('gv_id')) {
$gv_query = tep_db_query("select coupon_amount from " . TABLE_COUPONS . " where coupon_id = '" . $gv_id . "'");
$coupon = tep_db_fetch_array($gv_query);
$info_box_contents[] = array('align' => 'left','text' => tep_draw_separator());
$info_box_contents[] = array('align' => 'left','text' => '<table cellpadding="0" width="100%" cellspacing="0" border="0"><tr><td class="smalltext">' . VOUCHER_REDEEMED . '</td><td class="smalltext" align="right" valign="bottom">' . $currencies->format($coupon['coupon_amount']) . '</td></tr></table>');

}
/*if (tep_session_is_registered('cc_id') && $cc_id) {
$info_box_contents[] = array('align' => 'left','text' => tep_draw_separator());
$info_box_contents[] = array('align' => 'left','text' => '<table cellpadding="0" width="100%" cellspacing="0" border="0"><tr><td class="smalltext">' . CART_COUPON . '</td><td class="smalltext" align="right" valign="bottom">' . '<a href="javascript:couponpopupWindow(\'' . tep_href_link(FILENAME_POPUP_COUPON_HELP, 'cID=' . $cc_id) . '\')">' . CART_COUPON_INFO . '</a>' . '</td></tr></table>');

}*/
/* Serialio.com Edit Begin */
if (tep_session_is_registered('cc_id') && $cc_id) {
$coupon_query = tep_db_query("select * from " . TABLE_COUPONS . " where coupon_id = '" . $cc_id . "'");
$coupon = tep_db_fetch_array($coupon_query);
$coupon_desc_query = tep_db_query("select * from " . TABLE_COUPONS_DESCRIPTION . " where coupon_id = '" . $cc_id . "' and language_id = '" . $languages_id . "'");
$coupon_desc = tep_db_fetch_array($coupon_desc_query);
$text_coupon_help = sprintf("%s",$coupon_desc['coupon_name']);
$info_box_contents[] = array('align' => 'left','text' => tep_draw_separator());
$info_box_contents[] = array('align' => 'left','text' => '<table cellpadding="0" width="100%" cellspacing="0" border="0"><tr><td class="infoBoxContents_1">' . CART_COUPON . $text_coupon_help . '<br>' . '</td></tr></table>');
}
/* Serialio.com Edit End */

// ############ End Added CCGV Contribution ##########
new infoBox($info_box_contents);
?>
</td>
</tr>
<!-- shopping_cart_eof //-->



Jeg tror det er heromkring jeg skal pille:

// 1st line aligns the total amount to the right 2nd line shows the total
$info_box_contents[] = array('align' => 'right',
'text' => 'I alt ' . $currencies->format($cart->show_total()) . '<br><br><a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . HEADER_TITLE_CHECKOUT . '</a>');
}



Hvordan klarer jeg lige den?
Guide til de . Vi tester bla. og .
BPE
Novice
Novice
 
Indlæg: 26
Tilmeldt: 2008-10-26 20:07

Re: Indkøbskurv med fragt og ordre total.

Indlægaf succeed » 2009-07-15 10:11

BPE> Fandt du en løsning? Jeg er nemlig ikke kommet længere med min indkøbskurv.
Venlig Hilsen
D.B.Larsen
Godt & Gave - Gaveartikler, kunst og livsstil
succeed
Godt igang
Godt igang
 
Indlæg: 84
Tilmeldt: 2006-09-24 17:19
Geografisk sted: Hedehusene

Re: Indkøbskurv med fragt og ordre total.

Indlægaf Markussen » 2010-01-8 14:22

Markussen
Novice
Novice
 
Indlæg: 22
Tilmeldt: 2009-07-17 16:35


Tilbage til Contributions/Moduler (NY)

Hvem er online

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

cron