Cart |
+ basket = null; array; Current basket + basket_data = false; array; Basket data + basket_digital = false; bool; Digital basket - _discount = 0; float; Cart discount - _item_discount = false; bool; Cart item discount flag - _shipping = 0; float; Shipping cost - _shipping_discount = 0; float; Shipping discount - _subtotal = 0; float; Cart subtotal - _total = 0; float; Cart total - _weight = 0; float; Cart weight # _instance; static instance; Class instance |
# __construct; final + __destruct + getInstance; static + add + autoload + clear + discountAdd + discountRemove + get + getBasketDigital + getSubTotal + getTotal + getWeight + load + loadShippingModules; array|false; + checkShippingModuleCountry + remove; status|false; Remove an item from the basket + save; nothing; Save basket + set + update - _applyDiscounts; bool; Apply a discount to the cart - _applyProductDiscount; nothing; Apply product discount - _checkOption; bool; Check option choice |
Pages: [1] 2
1
on: July 31, 2013, 10:05:14 AM
|
||
Started by Chief! - Last post by Chief! | ||
|
2
on: July 31, 2013, 09:35:42 AM
|
|||||
Started by Chief! - Last post by Chief! | |||||
|
3
on: November 15, 2012, 11:25:09 PM
|
|||||
Started by Chief! - Last post by Chief! | |||||
CubeCart 5.0.7
|
4
on: February 21, 2012, 10:25:58 PM
|
|||||
Started by Chief! - Last post by Chief! | |||||
CubeCart 5.0.7
|
5
on: February 21, 2012, 10:03:56 PM
|
|||||
Started by Chief! - Last post by Chief! | |||||
CubeCart 5.0.7
|
6
on: February 19, 2012, 03:23:28 PM
|
||
Started by Chief! - Last post by Chief! | ||
The following is a line-by-line analysis of what happens when a customer selects a payment gateway and clicks Continue...
I chose to use Goober's (www.ccmodder.com) Payment Test Gateway. 0170 public function loadPage() ## from /index.php?_a=gateway and $_POST['gateway']="PTG" 0172 False 0231 True 0233 False 0237 switch 'gateway' 0339 default: 0340 $method = '_gateway' 0341 True 0342 $this->{$method}() ------------------------------------------------------------ 1613 private function _gateway() 1614 False 1620 $gateway = "PTG" 1621 $this->_displayGateways($gateway); ------------------------------------------------------------ 1419 private function _displayGateways($name = "PTG") 1420 $where = array('module' => 'gateway', 'status' => '1') 1421 $this->_basket =& $GLOBALS['cart']->basket 1422 True 1423 $where['folder'] = $name 1425 Update Cubecart_order_summary 1427 $gateways[0] = array('module_id'=>"22",'module'=>"gateway",'folder'=>"PTG",'status'=>"1",'default'=>"0",'countries'=>null) 1431 True 1432 True 1433 False 1437 $module = array('description'=>"Testing Gateway",'ReturnStatus'=>"Processing",'countries'=>null) 1439 False 1442 $folder = 'gateway' 1443 $class_path = CC_ROOT_DIR."\modules\gateway\PTG\gateway.class.php" 1445 True 1446 include $class_path 1447 $gateway = new Gateway($module, $this->_basket); ------------------------------------------------------------ gateway.class.php 0008 public function __construct($module = false, $basket = false) 0009 $this->_module = $module; 0010 $this->_basket =& $GLOBALS['cart']->basket; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1448 True 1449 $transfer = $gateway->transfer() ------------------------------------------------------------ gateway.class.php 0021 return array('method'=>'post','target'=>'_self','submit'=>'auto', 'action'=>$GLOBALS['storeURL'].'/modules/gateway/PTG/gateway/gateway.php') ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1449 $transfer = array('action=>URL,'method'=>'post','target'=>'_self','submit'=>'auto') 1450 switch 'auto' 1461 auto: 1463 $transfer['mode'] = "automatic" 1464 Smarty->assign("Proceed") 1465 $build_hidden_vars = true 1479 True 1480 $methods = array('fixedVariables','repeatVariables') 1481 foreach $methods 'fixedVariables' 1482 True ------------------------------------------------------------ gateway.class.php 0030 return array('cartId'=>basket['cart_order_id'],'status'=>module['ReturnStatus'],'amount'=>basket['total'], 'responseURL'=>$GLOBALS['storeURL'].'/index.php?_g=rm&mod_type=gateway&cmd=process&module=PTG') ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1483 $variables = array('cartId'=>basket['cart_order_id'],'status'=>module['ReturnStatus'],'amount'=>basket['total'],'responseURL'=>URL 1484 True 1485 $form_vars = $variables 1481 foreach $methods 'repeatVariables' 1482 True ------------------------------------------------------------ gateway.class.php 0026 return false ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1483 $variables = false 1484 False 1493 True 1494 Smarty->assign("Form_Vars") 1501 Smarty->assign("Transfer") 1543 return ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1622 $this->_checkoutProcess('gateway'); ------------------------------------------------------------ 0950 private function _checkoutProcess($section = null) 0951 switch 'gateway' 0955 case 'gateway: status=2 .... 0994 $url = "?_a=gateway" .... 1006 Smarty->assign("CHECKOUT_PROGRESS") ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1626 Smarty->assign("Page_Content") ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 0351 exit Javascript auto-submit /index.php?_g=rm&mod_type=gateway&cmd=process&module=PTG' |
7
on: February 15, 2012, 10:29:41 PM
|
|||||
Started by Chief! - Last post by Chief! | |||||
|
8
on: February 10, 2012, 11:17:32 PM
|
||||||||||||||||||||||||||||||||||||||||||||
Started by Chief! - Last post by Chief! | ||||||||||||||||||||||||||||||||||||||||||||
One of the skins that ships with CubeCart 3 is Killer, a full-width skin that has been ported to CubeCart 4. Let's port Killer from CubeCart 3 to CubeCart 5.
Table 1 Start by copying the folder structure (but not necessarily any of its contents except as noted in the list) of an existing CC5 skin and naming the new folder "killer". The folder structure will be:
Make copies of the files listed in Table 1 renaming them where indicated: |
9
on: February 10, 2012, 11:55:40 AM
|
|||||||||||||||||||||||||||||||||||||||||||||||||
Started by Chief! - Last post by Chief! | |||||||||||||||||||||||||||||||||||||||||||||||||
Designing a web site for CubeCart 5 involves creating a series of HTML files that comprise:
The global structure holds the various parts and pieces in place and has the requisite <html>, <head>, and <body> blocks. Each of the content details is usually placed in the center or the right side under the banner and the left side column is typically used for navigation and other details common to every page. But there may also be a right side column to hold some of the common details. The Content and Common detail blocks are represented in the global structure as {$PLACEHOLDERS}. Each of these placeholders will be replaced by actual HTML code built from their respective purpose. There is no need, however, to make sure each placeholder gets replaced. The engine that builds the final HTML code will strip any placeholder it finds whether there is any content for it or not.
logo for skins with subsets: <a href="{$STORE_URL}/index.php"><img src="{$STORE_URL}/images/logos/{$SKIN_FOLDER}-{$SKIN_SUBSET}.php" alt="{$META_TITLE}" /></a> logo for skins without subsets: <a href="{$STORE_URL}/index.php"><img src="{$STORE_URL}/images/logos/{$SKIN_FOLDER}.php" alt="{$META_TITLE}" /></a> template files for page content (
content.category.php = index.php?_a=category&cat_id=1 content.certificates.php = index.php?_a=certificates content.contact.php = index.php?_a=contact content.document.php = index.php?_a=document&doc_id=1 content.homepage.php = index.php content.login.php = index.php?_a=login content.product.php = index.php?_a=product&product_id=1 content.recover.php = index.php?_a=recover content.recovery.php = index.php?_a=recovery content.register.php = index.php?_a=register content.search.php = index.php?_a=search checkout pages content.checkout.php = index.php?_a=basket content.checkout.confirm.php = index.php?_a=confirm (step 2 of the checkout; for registered users shows a selection of saved addresses, for unregistered users shows a form to enter an address) content.gateway.php = index.php?_a=gateway customer account pages content.addressbook.php = index.php?_a=addressbook content.downloads.php = index.php?_a=downloads content.newsletter.php = index.php?_a=newsletter content.orders.php = index.php?_a=vieworder content.profile.php = index.php?_a=profile content.receipt.php = index.php?_a=vieworder&cart_order_id=111111-111111-1111 |
10
on: February 10, 2012, 09:14:18 AM
|
|||||
Started by Chief! - Last post by Chief! | |||||
|
Pages: [1] 2