Jump to content

convict

Member
  • Posts

    1,302
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by convict

  1. White space there - Home Page link image. Hmm complicated structure, too much divs.

    Enclose Homepage to UL, LI too, use only ONE UL for all cats, homepage LIs and why div for every category name? Just enclose entire code to one <div class="cssnav"> thats up to u :)

  2. This is the same case as iDevAffiliate.

    Generally

    1) AFFILIATE MODULES DOESNT WORKS IF GATEWAY RESULT CODE = FALSE (not equal SUCCESS)

    - payment is false

    2) AFFILIATE MODULES DOESNT WORKS PROPERLY IF GATEWAY $stateUpdate = FALSE.

    Print Form $stateUpdate = FALSE (Since 3.0.8 Affiliate code was added to Print Form code but doesnt work properly - Fix is below..)

    Pay Pal IPN $stateUpdate = FALSE (PayPal Standard works because $stateUpdate = TRUE)

    This is not so simple situation. Affiliate tracking must be shown in customer browser page (reliable Affiliate co. does this so only).

    By PayPal IPN order status is changed regardless customer does return to your store but Affiliate module doesnt works properly (some neccessary variables are NOT defined because its defined/erased (order Id and entire basket content) in routine for order status changing and confirmation email generation. This routine is called in call back url for PayPal - IPN and this is quite another process as customer has).

    Wit PayPal IPN the affiliate routine never run with proper variables (variables like order id and amount are empty)

    By PayPal Standard customer MUST return to your store - order status depends to page parameters going with return parameters and Affiliate Modules work properly if order payment is success. IF customer does not return to your store PayPal payment process is done - no order status change, no affiliate routine is running.

    ADDED LATER

    I have noticed that Affiliate code was added to Print Order Gateway in CC3.0.8 :huh: however doesnt work properly.

    1) Basket session data are cleared just before Affiliate code => Order Id is empty

    2) For some reason $order[0]['prod_total'] = $result[0]['prod_total']; doesnt work in first cycle ($i=0)

    Use this code:

    $print_order_form->parse("order_form");
    
    	
    
    $print_order_form->out("order_form");
    
    
    
    
    
    	// add affilate tracking code/module
    
    	$affiliateModule = $db->select("SELECT folder, `default` FROM ".$glob['dbprefix']."CubeCart_Modules WHERE module='affiliate' AND status = 1");
    
    
    
    	if($affiliateModule == TRUE) {
    
    
    
    		$order[0]['prod_total'] = $result[0]['prod_total'];	
    
    		for($i=0; $i<count($affiliateModule); $i++){
    
    			
    
    			include("../../../modules/affiliate/".$affiliateModule[$i]['folder']."/tracker.inc.php");
    
    			echo $affCode;
    
    		
    
    		}
    
    	
    
    	}
    
    
    
    	// empty basket
    
    	$basket = $cart->emptyCart();
    
    
    instead of this 
    
    	// empty basket
    
    	$basket = $cart->emptyCart();
    
    	
    
    $print_order_form->parse("order_form");
    
    	
    
    $print_order_form->out("order_form");
    
    
    
    
    
    // add affilate tracking code/module
    
    	$affiliateModule = $db->select("SELECT folder, `default` FROM ".$glob['dbprefix']."CubeCart_Modules WHERE module='affiliate' AND status = 1");
    
    
    
    	if($affiliateModule == TRUE) {
    
    	
    
    		for($i=0; $i<count($affiliateModule); $i++){
    
    			
    
    			include("../../../modules/affiliate/".$affiliateModule[$i]['folder']."/tracker.inc.php");
    
    			// VARS AVAILABLE
    
    			// Order Id Number $basket['cart_order_id']
    
    			// Order Total $order[0]['prod_total']
    
    			//$basket['cart_order_id'] = $_POST['x_invoice_num'];
    
    			$order[0]['prod_total'] = $result[0]['prod_total'];
    
    			echo $affCode;
    
    		
    
    		}
    
    	
    
    	}

  3. Since 3.0.6 no database upgrade is needed -> you really dont need a database backup.

    If you use an unmodified files, the simplest way is to:

    Upload every file from the upload folder in the package to the server replacing your existing ones excluding:

    includes/global.inc.php

    install/

    language/*/home.inc.php (If you have made changes.)

    If you use modified files you have to use changelog in 3.0.9 package and 3.0.10 package to change existing 3.0.8 files.

  4. Use PayPal IPN and Order status remains in Pending status until check is cleared :) Every payment on PayPal has own payment identification and saves IPN URL wich is 'called' if payment is successful. Payments by check are cleared after 4-5 days.

    I am using pay pal, and digital downloads, what happens if someone pays by check, will they still get the link to download the product even though the payment hasn't cleared yet?
  5. You shouldnt wait on upgrade, only you need is parse YOUR $phpAds_raw['html'] to a template 'variable'. It could be a global index.tpl.

    You have to manage a good place - header content usually ;)

    Example:

    <?php
    
    if (@include(getenv('DOCUMENT_ROOT').'/phpadsnew/phpadsnew.inc.php')) {
    
    if (!isset($phpAds_context)) $phpAds_context = array();
    
    $phpAds_raw = view_raw ('zone:1', 0, '', '', '0', $phpAds_context);
    
    $body->assign("BANNER", $phpAds_raw['html']);
    
    }
    
    ?>
    Add code above just after
    
    $body = new XTemplate ("skins/".$config['skinDir']."/styleTemplates/global/index.tpl");

    in index.php (cart.php)

    Then you have to find right place in header area in your global template index.tpl, {cart.tpl) (skins/{your skin}/styleTemplates/global/index.tpl) for your {BANNER} template variable.

  6. Easy and clean solution:

    skins/{your skin}/styleTemplates/global/index.tpl

    Search for:

    <title>{META_TITLE}</title>
    
    
    
    
    Add after:
    <!-- BEGIN: redirect --> <meta http-equiv="refresh" content="5;url=http://www.cubecart.com/"> <!-- END: redirect -->
    Red marked - Redirect Delay in seconds (0 = redirect immediately) Blue marked - Redirection URL (your home page here etc.) Final code around new one looks like this:
    <!-- BEGIN: body --> <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset={VAL_ISO}" /> <title>{META_TITLE}</title> <!-- BEGIN: redirect --> <meta http-equiv="refresh" content="5;url=http://www.cubecart.com/"> <!-- END: redirect --> <meta name="description" content="{META_DESC}" /> <meta name="keywords" content="{META_KEYWORDS}" />
    includes/content/logout.inc.php Add code below:

    Final code around new one looks like:

    if($update == TRUE && !isset($_GET['s'])) {

    header("Location: index.php?act=logout&s=1");

    exit;

    } elseif(isset($_GET['s']) && $_GET['s']==1) {

    $logout->assign("LANG_LOGOUT_STATUS",$lang['front']['logout']['session_destroyed']);

    $body->parse("body.redirect");

    } else {

    $logout->assign("LANG_LOGOUT_STATUS",$lang['front']['logout']['no_session']);

    $body->parse("body.redirect");

    }

    ;)

    $body->parse("body.redirect");
    
    
    
    
    After this:
    
    	$logout->assign("LANG_LOGOUT_STATUS",$lang['front']['logout']['session_destroyed']);
    
    
    
    
    and this code:
    
    $logout->assign("LANG_LOGOUT_STATUS",$lang['front']['logout']['no_session']);
  7. Everything is in template files and CSS files.

    Legend style Shop by category example:

    skins/Legend/styleTemplates/boxes/categories.tpl

    <!-- BEGIN: categories -->

    <div class="boxTitleLeft">{LANG_CATEGORY_TITLE}</div>

    <div class="boxContentLeft">

    <ul>

    <li class="bullet"><a href="index.php" class="txtDefault">{LANG_HOME}</a></li>

    <!-- BEGIN: li -->

    <li class="bullet"><a href="index.php?act=viewCat&catId={DATA.cat_id}" class="txtDefault">{DATA.cat_name}</a></li>

    <!-- END: li -->

    <!-- BEGIN: sale -->

    <li class="bullet"><a href="index.php?act=viewCat&catId=saleItems" class="txtDefault">{LANG_SALE_ITEMS}</a></li>

    <!-- END: sale -->

    </ul>

    </div>

    <!-- END: categories -->

    Red marked is the BOX header and this is the BOX name area. All you need is add a <img> HTML TAG here and/or play little bit with styles for this area.

    Have look to appropriate skins/Legend/styleSheets/layout.css search for class boxTitleLeft

    .boxTitleLeft, .boxTitleRight {
    
    	font-family: Verdana, Arial, Helvetica, sans-serif;
    
    	font-size: 70%;
    
    	color: #09347C;
    
    	background-image: url(../styleImages/backgrounds/boxTitleBg.gif);
    
    	width: 155px;
    
    	height: 15px;
    
    	padding-left: 5px;
    
    	padding-top: 1px;
    
    }

    You have to manage both file, box styles are common for another boxes or create unique style for your images header :)

    If you want to use this feature as multilanguage option this is little bit more complicated but doable.

  8. Make new Site Document or new html file then add link to this document in skins/{YOUR SKIN}/styleTemplates/boxes/categories.tpl file

    <ul>

    <li class="bullet"><a href="index.php" class="txtDefault">{LANG_HOME}</a></li>

    <!-- BEGIN: li -->

    <li class="bullet"><a href="index.php?act=viewCat&catId={DATA.cat_id}" class="txtDefault">{DATA.cat_name}</a></li>

    <!-- END: li -->

    <!-- BEGIN: sale -->

    <li class="bullet"><a href="index.php?act=viewCat&catId=saleItems" class="txtDefault">{LANG_SALE_ITEMS}</a></li>

    <!-- END: sale -->

    <li class="bullet"><a href="LINK TO YOUR NEW FILE<>" class="txtDefault"><LINK NAME HERE></a></li>

    </ul>

  9. Use table with two colum or two DIVs with style property float: left in viewProd.tpl

    TABLE:

    <!-- BEGIN: prod_true -->

    <strong>{LANG_DIR_LOC}</strong> {CURRENT_DIR}

    <form action="{CURRENT_URL}" method="post" name="addtobasket" target="_self">

    <p class="txtContentTitle"><strong>{TXT_PRODTITLE}</strong></p>

    <table><tr><td>

    <div style="text-align: center;"><img src="{IMG_SRC}" alt="{TXT_PRODTITLE}" border="0" title="{TXT_PRODTITLE}" /></div>

    <!-- BEGIN: more_images -->

    <div style="text-align: center;"><a href="java script:openPopUp('extra/prodImages.php?productId={PRODUCT_ID}', 'images', 548, 455, 0);" class="txtDefault">{LANG_MORE_IMAGES}</a></div>

    <!-- END: more_images -->

    </td><td>

    <p>

    <strong>{LANG_PRODINFO}</strong>

    <br />

    {TXT_DESCRIPTION}

    </p>

    <p>

    <strong>{LANG_PRICE}</strong> {TXT_PRICE}

    <span class="txtSale">{TXT_SALE_PRICE}</span>

    </p>

    <ul>

    <li class="bulletLrg"><a href="index.php?act=taf&productId={PRODUCT_ID}" target="_self" class="txtDefault">{LANG_TELLFRIEND}</a></li>

    </ul>

    <!-- BEGIN: prod_opts -->

    <br />

    <strong>{TXT_PROD_OPTIONS}</strong>

    <table border="0" cellspacing="0" cellpadding="3">

    <!-- BEGIN: repeat_options -->

    <tr>

    <td><strong>{VAL_OPTS_NAME}</strong></td>

    <td>

    <select name="productOptions[]">

    <!-- BEGIN: repeat_values -->

    <option value="{VAL_ASSIGN_ID}">

    {VAL_VALUE_NAME}

    <!-- BEGIN: repeat_price -->

    ({VAL_OPT_SIGN}{VAL_OPT_PRICE})

    <!-- END: repeat_price -->

    </option>

    <!-- END: repeat_values -->

    </select>

    </td>

    </tr>

    <!-- END: repeat_options -->

    </table>

    <!-- END: prod_opts -->

    <br />

    <strong>{LANG_PRODCODE}</strong> {TXT_PRODCODE}

    <div>

    {TXT_INSTOCK}<span class="txtOutOfStock">{TXT_OUTOFSTOCK}</span>

    <!-- BEGIN: buy_btn -->

    <div style="position: relative; text-align: right;">{LANG_QUAN}

    <input name="quan" type="text" value="1" size="2" class="textbox" style="text-align:center;" />

    <a href="java script:submitDoc('addtobasket');" class="txtButton">{BTN_ADDBASKET}</a>

    </div>

    <!-- END: buy_btn -->

    </div>

    <input type="hidden" name="add" value="{PRODUCT_ID}" />

    </form>

    </td></tr></table>

    <!-- END: prod_true -->

    DIvs code is almost the same.

×
×
  • Create New...