Jump to content

SemperFi

Member
  • Posts

    82
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by SemperFi

  1. Yes, quite a good tip (both of them) :)
  2. Thanks ansuk Moving the login, yeah that was 'fun' but definately worth it. As for aboutus, yep, just trying to work out exactly what I want it to say.
  3. Display images all watermarked. Any further feedback ?
  4. Added code to : global/index.tpl and global/cart.tpl Also did the modifications to content/confirmed.tpl and and includes/content/confirmed.inc.php E-commerce set to on Site set as http://www.semperfiphotography.com/ Default page set as index.php When using check trackign status, getting this still: Any ideas?
  5. Cheers Robsta :blink:
  6. Thankyou very much vrakas Watermarking...yep...on the todo list :thumb:
  7. SemperFi Photography Still a work in progress....still a few things I need to finish....but critique away! :blink:
  8. Good suggestion there Markscarts, thankyou As for the css cursor property... cursor: hand Correct? As for whether they be text or images, I really dont mind. Just want them to look the same, and I just happened tolike the look of that one. If you can give some pointers on how to do the same with an image, Id be just as happy to do that.
  9. Any suggestions on how to do that?
  10. Any chance of getting some help on this one? This is one of the last remaining things I need to do before my site goes live.
  11. I was just reading a thread at a webhosting site re the above topic (Accepting Credit Card in Paypal without Paypal Account) From looking at paypal - goto https://www.paypal.com/webscr?cmd=_xclick&business={insert your paypal email address here} - click on "If you do not currently have a PayPal account" - on left (Don't Have a PayPal Account?) there is the form to pay without signing up This form is available to Website Payments Standard (premier and business) and also to Website Payments Pro. The difference between the two being : - Website Payments Standard (premier and business) the customer still enters their credit card information on a checkout page hosted by PayPal. - Website Payments Pro allows you to collect the credit card information on your own website and pass it to PayPal via API for processing. And now for my question.... Has anyone set paypal in Cubecart up this way and if so how ? Thankyou in advance.
  12. *** Edit : just noticed that a default cubecart uses Cubecart_ as a table prefix (note the uppercase). SQL code updated. You need to select the database first. Either via "use dbname;" at command line or by clicking on it via phpmyadmin Then running the SQL command. If you try and run it without selecting a your database first, you will get an error like : "ERROR 1046 (3D000): No database selected" Select your DB and try again. If you still have problems running a SQL query, you might find this page of use : http://dev.mysql.com/doc/refman/5.0/en/alter-table.html :whistle:
  13. *** Optional *** You only need to do this if you have installed the 'add user mod' Optional Step 1 - Edit admin/customers/add_customer.php Find: $record["mobile"] = $db->mySQLSafe($_POST['mobile']); Replace with: $record["mobile"] = $db->mySQLSafe($_POST['mobile']); $record["siteURL"] = $db->mySQLSafe($_POST['siteURL']); Find: <tr> <td class="tdRichText"><span class="copyText"><strong>Customer Email Address</strong></span></td> <td class="tdRichText" colspan="2"><input name="email" class="textbox" value="<?php if(isset($results[0]['email'])) echo $results[0]['email']; ?>" type="text" maxlength="255" /></td> </tr> Add this below: <tr> <td class="tdRichText"><span class="copyText"><strong>Customer Website Address</strong></span></td> <td class="tdRichText" colspan="2"><input name="siteURL" class="textbox" value="<?php if(isset($results[0]['siteURL'])) echo $results[0]['siteURL']; ?>" type="text" maxlength="255" /></td> </tr> Save and upload admin/customers/add_customer.php All required steps are now finished Test it out Let me know how it works / if this tutorial was of any use. :)
  14. Admin side..... Step 10 - Edit admin/customers/index.php Find: $record["phone"] = $db->mySQLSafe($_POST['phone']); Replace with: $record["phone"] = $db->mySQLSafe($_POST['phone']); $record["siteURL"] = $db->mySQLSafe($_POST['siteURL']); Find: $like .= "(email LIKE '%".$searchArray[$i]."%' OR title LIKE '%".$searchArray[$i]."%' OR firstName LIKE '%".$searchArray[$i]."%' OR lastName LIKE '%".$searchArray[$i]."%' OR add_1 LIKE '%".$searchArray[$i]."%' OR add_2 LIKE '%".$searchArray[$i]."%' OR town LIKE '%".$searchArray[$i]."%' OR county LIKE '%".$searchArray[$i]."%' OR postcode LIKE '%".$searchArray[$i]."%' OR country LIKE '%".$searchArray[$i]."%' OR phone LIKE '%".$searchArray[$i]."%' OR ipAddress LIKE '%".$searchArray[$i]."%') OR "; Replace with: $like .= "(email LIKE '%".$searchArray[$i]."%' OR title LIKE '%".$searchArray[$i]."%' OR firstName LIKE '%".$searchArray[$i]."%' OR lastName LIKE '%".$searchArray[$i]."%' OR add_1 LIKE '%".$searchArray[$i]."%' OR add_2 LIKE '%".$searchArray[$i]."%' OR town LIKE '%".$searchArray[$i]."%' OR county LIKE '%".$searchArray[$i]."%' OR postcode LIKE '%".$searchArray[$i]."%' OR country LIKE '%".$searchArray[$i]."%' OR phone LIKE '%".$searchArray[$i]."%' OR siteURL LIKE '%".$searchArray[$i]."%' OR ipAddress LIKE '%".$searchArray[$i]."%') OR "; Find: <td align="left" class="tdTitle"><?php echo $lang['admin']['customers']['email']; ?></td> Replace With: <td align="left" class="tdTitle"><?php echo $lang['admin']['customers']['email']; ?>/<?php echo $lang['admin']['customers']['siteurl']; ?></td> Find: <td class="<?php echo $cellColor; ?>"><a href="mailto:<?php echo $results[$i]['email']; ?>" class="txtLink"><?php echo $results[$i]['email']; ?></a></td> Replace With: <td class="<?php echo $cellColor; ?>"><a href="mailto:<?php echo $results[$i]['email']; ?>" class="txtLink"><?php echo $results[$i]['email']; ?></a><br><a href="url:<?php echo $results[$i]['siteURL']; ?>" class="txtLink"><?php echo $results[$i]['siteURL']; ?></a></td> Find: <tr> <td width="175" class="tdText"><?php echo $lang['admin']['customers']['email2']; ?></td> <td width="175"><input name="email" type="text" id="email" value="<?php echo $results[0]['email']; ?>" class="textbox" /></td> </tr> Add this below: <tr> <td width="175" class="tdText"><?php echo $lang['admin']['customers']['siteurl2']; ?></td> <td width="175"><input name="siteURL" type="text" id="siteURL" value="<?php echo $results[0]['siteurl']; ?>" class="textbox" /></td> </tr> Save + Upload admin/customers/index.php Step 11 - Edit language/en/lang.inc.php Find: $lang['admin']['customers'] = array ( Add this below: 'siteurl2' => "Website:", 'siteurl' => "Website", Save + Upload language/en/lang.inc.php Step 12 - Testing Goto : www.yoursite.com/admin/customers/ and test it out.
  15. Steps for the profile page.... Step 6 - Edit includes/content/profile.inc.php Open includes/content/profile.inc.php in your favourite editor. Find: if(empty($_POST['firstName']) || empty($_POST['lastName']) || empty($_POST['email']) || empty($_POST['phone']) || empty($_POST['add_1']) || empty($_POST['town']) || empty($_POST['county']) || empty($_POST['postcode']) || empty($_POST['country'])){ Replace with: if(empty($_POST['firstName']) || empty($_POST['lastName']) || empty($_POST['email']) || empty($_POST['phone']) || empty($_POST['add_1']) || empty($_POST['town']) || empty($_POST['county']) || empty($_POST['postcode']) || empty($_POST['country']) || empty($_POST['siteURL'])){ Find: $data['mobile'] = $db->mySQLSafe($_POST['mobile']); Replace with: $data['mobile'] = $db->mySQLSafe($_POST['mobile']); $data['siteURL'] = $db->mySQLSafe($_POST['siteURL']); Find: $profile->assign("TXT_MOBILE",$lang['front']['profile']['mobile']); $profile->assign("VAL_MOBILE",$ccUserData[0]['mobile']); Replace with: $profile->assign("TXT_MOBILE",$lang['front']['profile']['mobile']); $profile->assign("VAL_MOBILE",$ccUserData[0]['mobile']); $profile->assign("TXT_SITEURL",$lang['front']['profile']['siteurl']); $profile->assign("VAL_SITEURL",$ccUserData[0]['siteURL']); Save + Upload includes/content/profile.inc.php Step 7 - Edit language/en/lang.inc.php Find: $lang['front']['profile'] = array( Add this below: 'siteurl' => "Your Website", Save + Upload language/en/lang.inc.php Step 8 - Edit skins/{YOUR_SKIN}/styleTemplates/content/profile.tpl Find: <tr> <td align="right"><strong>{TXT_MOBILE}</strong></td> <td><input name="mobile" type="text" class="textbox" id="mobile" value="{VAL_MOBILE}" maxlength="100" /></td> </tr> Add this below: <tr> <td align="right"><strong>{TXT_SITEURL}</strong></td> <td><input name="siteURL" type="text" class="textbox" id="siteURL" value="{VAL_SITEURL}" maxlength="100" /></td> </tr> Save + Upload skins/{YOUR_SKIN}/styleTemplates/content/profile.tpl Step 9 - Testing You guessed it....more testing Goto www.yoursite.com/index.php?act=profile and make all is working as expected. TBC.....
  16. As per the title, this is a guide on adding a field to the registration page. When all is completed, and all correct, I will write a tutorial that can hopefully be added to the tutorial section. Disclaimer : Before proceeding please backup your database and files! In this example, we are going to add a new field for customers to enter their website url upon registration. Here we go..... Step 1 - SQL Run this SQL Query ALTER TABLE Cubecart_customer ADD siteURL varchar(255) NOT NULL default ''; Step 2 - Edit includes/content/reg.inc.php Open includes/content/reg.inc.php in your favourite editor. Find : if(empty($_POST['firstName']) || empty($_POST['lastName']) || empty($_POST['email']) || empty($_POST['phone']) || empty($_POST['add_1']) || empty($_POST['town']) || empty($_POST['county']) || empty($_POST['postcode']) || empty($_POST['country']) || empty($_POST['password']) || empty($_POST['passwordConf'])){ Replace With : if(empty($_POST['firstName']) || empty($_POST['lastName']) || empty($_POST['email']) || empty($_POST['phone']) || empty($_POST['add_1']) || empty($_POST['town']) || empty($_POST['county']) || empty($_POST['postcode']) || empty($_POST['country']) || empty($_POST['password']) || empty($_POST['passwordConf']) || empty($_POST['siteURL'])){ Find : $record["regTime"] = $db->mySQLSafe(time()); $record["ipAddress"] = $db->mySQLSafe($_SERVER['REMOTE_ADDR']); Replace With : $record["regTime"] = $db->mySQLSafe(time()); $record["ipAddress"] = $db->mySQLSafe($_SERVER['REMOTE_ADDR']); $record["siteURL"] = $db->mySQLSafe($_POST['siteURL']); Find : $reg->assign("LANG_PLEASE_READ",$lang['front']['reg']['please_read']); Replace With : $reg->assign("LANG_PLEASE_READ",$lang['front']['reg']['please_read']); $reg->assign("LANG_SITE_URL",$lang['front']['reg']['site_url']); $reg->assign("LANG_SITE_URL_TITLE",$lang['front']['reg']['site_url_title']); Find : $reg->assign("VAL_POSTCODE",$_POST['postcode']); Replace With : $reg->assign("VAL_POSTCODE",$_POST['postcode']); $reg->assign("VAL_SITEURL",$_POST['siteURL']); Save + Upload includes/content/reg.inc.php Step 3 - Edit language/en/lang.inc.php Find : 'conf_pass' => "Confirm Password:",[code] Add this below : [code]'site_url' => "Your Website", 'site_url_title' => "Website Details", Save + Upload language/en/lang.inc.php Step 4 - Edit skins/{YOUR_SKIN}/styleTemplates/content/reg.tpl Find : <tr> <td colspan="4" class="tdcartTitle">{LANG_SECURITY_DETAILS}</td> </tr> <tr> <td>{LANG_CHOOSE_PASSWORD}</td> <td><input name="password" type="password" class="textbox" id="password" size="16" value="{VAL_PASSWORD}" tabindex="13" /> * </td> <td>{LANG_CONFIRM_PASSWORD}</td> <td><input name="passwordConf" type="password" class="textbox" id="passwordConf" size="16" value="{VAL_PASSWORD_CONF}" tabindex="14" /> * </td> </tr> Below that add this : <tr> <td colspan="4" class="tdcartTitle">{LANG_SITE_URL_TITLE}</td> </tr> <tr> <td>{LANG_SITE_URL}</td> <td><input name="siteURL" type="text" class="textbox" id="siteURL" size="16" value="{VAL_SITEURL}" tabindex="18" /> * </td> </tr> Save + Upload skins/{YOUR_SKIN}/styleTemplates/content/reg.tpl * Note you may also wish to update the tabindexs so they are sequential Step 5 - Testing! Goto www.yoursite.com/cart.php?act=reg Register a new user (fill in the new field) Check your cubecart_customer table for the new entry and data added to it. All done :)
  17. Having a few issues with buttons throughout the site. What I want : - all to look the same throughout the site - all to look the same using firefox/IE - all to look like the viewcart button in sidebox (background colour changes on mouseover, cc standard I think) Shouldnt be too difficult.....yet it is...and is therefore driving me Here is where all are currently at....quite a mess actually. Mailing list sidebox Template : <div style="padding-top: 5px; text-align: center;"> <input name="submit" type="submit" value="{LANG_GO}" class="submit" /> </div> CSS : .submit { font-family: Arial, Helvetica, sans-serif; color: #FFFFFF; background-color: #800000; border: none; height: 18px; font-weight: bold; border: 1px solid #800000; } Search Button Template : <input name="Submit" type="submit" class="searchBtn" value="Search" /> CSS : .searchBtn { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 60%; font-weight: bold; color: #FFFFFF; border: none; height: 20px; width: 60px; /* background-image: url(../styleImages/buttons/search_button_background.gif); */ background-color: #80000; } Session Template : <tr> <td>&nbsp;</td> <td class="loginBtn" width="60" height="21"><input name="submit" type="image" value="Login" class="BtnText"></td> <td width="20" height="21">&nbsp;</td> <td class="regBtn" width="60" height="21"><a href="cart.php?act=reg&amp;redir={VAL_SELF}"><span class="BtnText">Register</span></a></td> <td>&nbsp;</td> </tr> CSS : /* Start Login/Register Button Additions */ .loginBtn { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 50%; font-weight: bold; color: #FFFFFF; text-align: center; border: none; /* height: 17px; */ /* width: 40px; */ background-image: url(../styleImages/buttons/searchSubmit.gif); text-decoration: underline; cursor: pointer; cursor: hand; margin-bottom: 5px; } .BtnText { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bold; color: #FFFFFF; text-align: center; text-decoration: underline; cursor: pointer; cursor: hand; } .regBtn { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bold; color: #FFFFFF; text-align: center; border: none; /* height: 17px; */ /* width: 60px; */ background-image: url(../styleImages/buttons/searchSubmit.gif); margin-bottom: 5px; } And last but not least....the one that works as expected. Cart sidebox Template : <div style="text-align: center; padding-top: 3px;"><a href="cart.php?act={CART_STEP}" class="txtviewCart">{LANG_VIEW_CART}</a></div> CSS : a.txtviewCart:active, a.txtviewCart:link, a.txtviewCart:visited { font-family: Arial, Helvetica, sans-serif; font-size: 70%; font-weight: bold; color: #FFFFFF; background-color: #800000; text-decoration: none; font-weight: bold; padding: 2px; /* border: 1px solid #000000; */ } a.txtviewCart:hover { background-color: #FF3300; color: #FFFFFF; } As you can see...there is no conformity between any of them What do I need to do to get all of them to behave and appear like the cart button? Thankyou greatly in advance
  18. Changed to DIV Added in some CSS All worked fine. Thankyou to you both :)
  19. When using the mailinglist sidebox, I would like one of two things to happen. 1. For the confirmation to appear in its own box in colMid or 2. To strip out the email address if the confirmation has to stay in sidebox Obviously I would prefer option 1. Thankyou in advance :ninja:
  20. Good point re the float: center When float: left and text-align left are used, all that does is push it over to the left, still one verticle column (with one product per row).
  21. Here is the code I am using in viewCats.tpl: <!-- BEGIN: productTable --> <table border="0" width="100%" cellspacing="0" cellpadding="3"> <!-- BEGIN: products --> <tr> <td style="float: center; text-align: center; position:relative; width: 150px; height :150px;"><a href="index.php?act=viewProd&amp;productId={PRODUCT_ID}" target="_self"><img src="{SRC_PROD_THUMB}" alt="{TXT_TITLE}" border="0" title="{TXT_TITLE}" /></a> <br> <a href="index.php?act=viewProd&amp;productId={PRODUCT_ID}" target="_self" class="txtDefault"><strong>{TXT_TITLE}</strong></a> <br /> {TXT_PRICE} </td> </tr> <!-- END: products --> </table> <!-- END: productTable --> Currently it is displaying all the products as I want, but with one exception, its all in 1 column straight down the center. What I want it to do is fill from left to right. ie so there are 3 or 4 products on one row, then it flows to the next row and repeats. Any ideas? Thankyou in advance.
  22. Worked brilliantly One small suggestion, being able to control $across via admin, perhaps under where you set it display on homepage? Great job and thankyou.
  23. What I am trying with the categories sidebox is this : - use images at the top of the box - display top level categories and their child categories (tree) In another version of cart software, this is achieved by using this code (in categories-tree.tpl) {foreach from=$categories item=category key=cat_key} <table cellpadding="0" cellspacing="0" width="100%" border="0"> {if $cat_key ne "0" and $category.level == "0"} <tr> <td colspan="3" style="background-image: url('{$images_dir}/sidebox_body_delim.gif');"> <img src="{$images_dir}/spacer.gif" width="1" height="7" alt=""></td> </tr> {/if} <tr> <td width="1"> <img src="{$images_dir}/spacer.gif" width="{math equation='x*y' x='8' y=$category.level}" height="1" border="0" alt=""></td> <td width="100%"> <a href="{$index_script}?{$target_name}=categories&category_id={$category.category_id}" class="{if $category.level == "0"}sidebox-rootcategory{else}sidebox-subcategory{/if}">{$category.category}</a></td> {* <td align="right"> {if $category.level == "0"}<img src="{$images_dir}/category_expanded.gif" width="14" height="15" border="0" alt="">{else}<img src="{$images_dir}/spacer.gif" width="14" height="15" border="0" alt="">{/if}</td> *} </tr> </table> {/foreach} I have attached an image to better show the output. What code do I need to replace the current code in styleTemplates/boxes/categories.tpl to achieve this look ? Thankyou in advance.
×
×
  • Create New...