Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Richard (rkgwebdesign)

Members
  • Joined

  • Last visited

Everything posted by Richard (rkgwebdesign)

  1. Thanks Yeah as for the adverts the client wanted them on, personally I wouldn't put google adsense ads on a shopping cart site like this but they seem to make enough out of them. With adsense intergration I've had good results from blending the adverts into the design.
  2. http://www.ask-models.com/shop/index.php Spent way too long on this and I'm already thinking of ways to redesign it, let me know what you think! My first full shopping cart overhawl!
  3. I'm quite happy with my host overall, even when there is a problem their support ticket system is second to none Although a major problem I find with shared hosting, is that every know and again my site goes down becasue so other user is abusing the resources
  4. Thanks I will give that ago and let you know what happens!
  5. Hmmm yeah i guess that it does, I'm not sure what to do - i suppose i don't want to encourage users to click off the site. Yeah I might remove them actually, although it was interesting learning about adsense
  6. Hello I'm trying to add some functionality to some jQuery tabs I'm using here: http://development.ask-models.com/shop/index.php?_a=viewProd&productId=3776 This is the code I have that works : <script type="text/javascript" src="js/jquery.tools.min.js"></script> <script> jQuery(document).ready(function() { jQuery("#Tabs ul").tabs("div.panes > div"); jQuery("#reviewTabs ul").tabs("div.subpanes > div"); }); </script> And to add some functionality I have found this code: // get handle to the tabs API var api = $("ul.tabs", reviewTabs).tabs(0); // "next tab" button $("button.next", reviewTabs).click(function() { api.next(); }); // "previous tab" button $("button.prev", reviewTabs).click(function() { api.prev(); }); Basically I need to merge the two pieces of code together, but I'm struggling as they seem to have been writen in two different styles, would anyone be able to help me? Thanks!
  7. What’s the general feeling on having adsense adverts on a shopping cart? I’ve not sure if I’s a good idea or not, on the one hand I like the idea of generating extra revenue from a site, on the other hand I shouldn’t be encouraging customers to click away from the site without buying anything. Someone suggested to me that if I were to have them on the site I should keep them off reg and view basket pages. Does anyone else feature adsense adverts on their shopping carts?
  8. Hosting companies sure are a strange thing, I'm on my 4th one in about a year, the one I'm currently with have been great until about a month ago when I started to get MySql errors
  9. Thanks Currently cleaning up the last few bits, bug fixing and then a hell of a lot of testing, it's basically the first shopping cart site I've done and these things are huge!
  10. Hello me again right basically the guy who does most of the work on the development side is on holiday for two weeks so I've been left to finish things off, fix bugs etc, which I can find until I have to do some in php. Basically the search box on the home page wont search all categories like it should please see here : http://development.ask-models.com/shop/index.php This is the code I've been left with : Basically I need it to search all categories if it is left on 'All categories' I hope that makes sense, I'm rubish at explaing things! if (!defined('CC_INI_SET')) die("Access Denied"); // include lang file $lang = getLang("includes".CC_DS."boxes".CC_DS."searchForm.inc.php"); $box_content = new XTemplate ("boxes".CC_DS."searchForm.tpl"); // Categories $results = $db->select(sprintf("SELECT cat_id, cat_father_id, cat_name FROM %sCubeCart_category WHERE hide = '0' AND (cat_desc != '##HIDDEN##' OR cat_desc IS NULL) AND noProducts >= 1 GROUP BY cat_father_id, cat_id", $glob['dbprefix'])); foreach ($results as $result) { $options[$result['cat_id']] = getCatDir($result['cat_name'], $result['cat_father_id'], $result['cat_id']); } asort($options); foreach ($options as $option_id => $option_name) { $selected = null; if (isset($_GET['category'][0]) && (int)$_GET['category'][0] == $option_id) { $selected = 'selected'; } $box_content->assign('OPTION_VALUE', $option_id); $box_content->assign('OPTION_TITLE', $option_name); $box_content->assign('OPTION_SELECTED', $selected); $box_content->parse("search_form.search_category"); } // The Rest $box_content->assign("LANG_SEARCH_FOR",$lang['searchForm']['search_for']); if (isset($_GET['searchStr'])) { $box_content->assign("SEARCHSTR", sanitizeVar($_GET['searchStr'])); } else { $box_content->assign("SEARCHSTR", ''); } $box_content->assign("LANG_GO", $lang['searchForm']['go']); $box_content->assign("LANG_ADVANCED_SEARCH", $lang['searchForm']['search_advanced']); $box_content->parse("search_form"); $box_content = $box_content->text("search_form"); ?> <!-- BEGIN: search_form --> <form action="index.php" id="search-form" method="get"> <a class="advance-search" href="index.php?_a=search">Click here for Advanced Search</a> <h3>{LANG_SEARCH_FOR}</h3> <input name="searchStr" type="text" class="input" size="26" value="{SEARCHSTR}" onfocus="this.value=''" size="18" /> <select name="category[]" class="select"> <option value="0">All Categories</option> <!-- BEGIN: search_category --> <option value="{OPTION_VALUE}" {OPTION_SELECTED}>{OPTION_TITLE}</option> <!-- END: search_category --> </select> <input class="button" name="Submit" type="submit" value="{LANG_GO}" /> <input type="hidden" name="_a" value="viewCat" /> </form> <!-- END: search_form -->
  11. Yes thanks it worked perfectly : ) Currently testing the entire site so hopefully it wont cause any problems! You can have alook here if you wish - http://development.ask-models.com Thanks again for your help!
  12. I think I got it to work with some crazy code editing : ) Hopefully there will not be any problems with it! <!-- BEGIN: gateway --> <br> <div id="viewCart" class="wrapper"> <div class="top"></div> <div class="inside"> <!-- BEGIN: cart_false --> <p>{LANG_CART_EMPTY}</p> <!-- END: cart_false --> <!-- BEGIN: cart_true --> <div id="gateway"> <!-- BEGIN: choose_gate --> <h1>Make Payment</h1> <p>Please choose your preferred payment method from those listed below.<br /> Your order will not be completed until payment has cleared.</p> <div id="gatewayBG"> <h1>{LANG_PAYMENT_SUMMARY}</h1> </div> <br clear="all" /> <form action="{VAL_FORM_ACTION}" method="{VAL_FORM_METHOD}" name="gateway_Paypal" target="{VAL_TARGET}"> <div id="gatewayBG"> <h1>Paypal</h1> <div id="paypalGatewayImg"> <img src="skins/{VAL_SKIN}/styleImages/paypal_gateway.jpg"> </div> <p>Paypal payment method explain text here.</p> </div> <input name="gateway" type="hidden" value="PayPal" {VAL_CHECKED} /> <input type="button" class="gatewayButton" value="Pay with Paypal" onclick="javascript:submitDoc('gateway_Paypal');" /> </form> <br clear="all" /> <br clear="all" /> <div id="gatewayBG"> <form action="{VAL_FORM_ACTION}" method="{VAL_FORM_METHOD}" name="gateway_Print_Order_Form" target="{VAL_TARGET}"> <h1>Postal Order Form</h1> <p>Postal order form payment method explain text here.</p> </div> <input name="gateway" type="hidden" value="Print_Order_Form" {VAL_CHECKED} /> <input type="button" class="gatewayButton" value="Pay by Postal Order Form" onclick="javascript:submitDoc('gateway_Print_Order_Form');" /> </form> <!-- END: choose_gate --> <!-- BEGIN: transfer --> <form action="{VAL_FORM_ACTION}" method="{VAL_FORM_METHOD}" name="gateway" target="{VAL_TARGET}"> {FORM_PARAMETERS} <!-- BEGIN: auto_submit--> <p>{LANG_TRANSFERRING}</p> <p><img src="skins/{VAL_SKIN}/styleImages/progress.gif" alt="Payment Gateway Progress" onload="submitDoc('gateway')" /></p> <!-- END: auto_submit--> <!-- BEGIN: manual_submit--> <p>{LANG_FORM_TITLE}</p> {FORM_TEMPLATE} <!-- END: manual_submit--> <a href="javascript:submitDoc('gateway');" class="txtButton">{LANG_CHECKOUT_BTN}</a> </form> <!-- END: transfer --> <br clear="all" /> <br clear="all" /> </div> <!-- END: cart_true --> </div> </div> <!-- END: gateway -->
  13. Hey thanks Darren! What was the exact code you used? As I can not seem to get it to work, nothing submits
  14. Hey thanks for the response! This is what I have tried : <input type="button" value="Print_Order_Form" onclick="javascript:submitDoc('gateway');" /> <input type="button" value="Paypal_Payments_Pro" onclick="javascript:submitDoc('gateway');" /> So that would give me two buttons, however this doesn't work as nothing is submitted and name of the buttons is 'Print_Order_Form' etc which isn't ideal, I'm not sure how to hook these buttons up using the radio button code. This is what I'm trying to achieve: Thanks again
  15. Hello everyone! I'm currently making the move from the world of print and advertising to become a more web based designer and I'm already loving it This is what I'm currently working on : http://development.ask-models.com I hope to luanch my own web design services site off the back of it! Nice to meet you all! See you around the boards!
  16. Coverting a radio button to a regular button? Hey I'm pretty new here but I've been messing around with the web for years now : ) I'm currently working on a shopping cart redesign using Cubecart and I need to change the following radio box code to a normal clickable button, is that possiable? Here is the code : <input name="gateway" type="radio" value="{VAL_GATEWAY_FOLDER}" {VAL_CHECKED} /> I have two gateways installed that display, that basically replace 'VAL_GATEWAY_FOLDER'they are : Print_Order_Form Paypal_Payments_Pro Hope that makes sense! Thanks for your help!

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.