Jump to content

markscarts

Member
  • Posts

    2,486
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by markscarts

  1. Oooops. Sorry, I missed this other recent thread. http://www.cubecart.com/site/forums/index....showtopic=16390

    It appears that I am correct then, the problem I have read about from others is being caused by managing multiple cats.

    I have also read the "chuggyskins" has found the source of this anomaly and is forwarding it to development team. A bit of a joke that he is not sharing it here :wacko: If he does not post more info on it, I will post full info when I have time to sort it out, so others here may be helped.

    To moderators - could you please append this post to the other thread?

    Thx IA

    Mark

  2. I have seen several posts over the past year that indicate a problem of people adding a product, then having it appear double under a category. I've never experienced that behavior until recently, yesterday in fact, and it happened when adding extra categories to a product :wacko:

    So now I am very curious to hear from others who have experienced this unintentional "cloning" of products. What I would like to know is that when this happened to you, had you added extra categories to the product? I want to begin looking for a cause in extraCats.php - because when this happened to me, i had added three extra cats to each product, and the cause of "doubling" was extra entries in CubeCart_cats_idx

    So, the prods were not doubled under the main category, but under some of the extra categories. This made the fix easy - all I had to do was delete the extra records from CubeCart_cats_idx but it would be nice to find where the anomaly is in the code that allows this.

    SO, if you have experienced this problem, were you using extra cats? Did the multiplying occur under extra cats or under the main cat where product was added? I would assume the former, since some posts I read stated that the prod was only listed once in inventory . . . But I would like to hear from others who have experienced this for confirmation.

    Thanks,

    Mark

  3. I was wondering if a 3rd Party modules link could be added somewhere within the admin panel navigation?

    Do you not think that some users would be confused to why the page had nothing on it, if they didn't have any 3rd party mods installed?

    No need to call it 3rdParty, is there? It would be nice if there were an area, though, could call it Add-on Modules or just Add-ons ~ That would server both for 3rd party add-ons and any after-market addons that Devellion cared to create and sell.

    It's an excellent suggestion, just as the original creation of a 3rdparty area under Modules was a great idea by Goober, many of the modders already follow that for top-notch modules that may be enabled/disabled and such.

    Also, specifically to Paula's question again, no more than a customer who visits a store, enters a category, and is greeted by "There are no products inn this category LOL :ninja:

  4. Just an aside, about the "all platforms version" - this is a misnomer, I don't think there is any such thing. There is an "all platforms" download - but this is just a zip archive that contains all the individual files for separate platforms. I'm fairly certain you still need to point to the correct platform version.

  5. Thanks to Al's guidance, was finally able to run Beta one on Windows running Apache with WAMP5 wampserver.

    Issue was installation of ioncube, which is not so straightforward with this setup. To resolve, I did these steps:

    Install Ioncube in Server Settings

    1. left-click system tray navigation, open WAMP5 > Config Files > ini.php

    2. add the following line:

    zend_extension_ts = c:/wamp/ioncube/ioncube_loader_win_5.2.dll

    Note: The bold 5.2 may vary, you need the appropriate file version downloaded as per instructions with Beta1

    Note: obviously, you can change this path if necessary to wherever you put the ioncube folder, I just put it in the wamp folder instead of store root.

    Note: You may paste that line anywhere, I paste it below the Zend optimizer line like this:

    ; Enable compatibility mode with Zend Engine 1 (PHP 4.x)

    zend.ze1_compatibility_mode = Off

    ;Enable ioncube

    zend_extension_ts = c:/wamp/ioncube/ioncube_loader_win_5.2.dll

    3. Save the file, then restart the service.

    Restarting Wampserver

    I run WAMP5 continuously in system tray, to restart all services, just a few mouse clicks: Click server tray icon, choose Restart All Services and wait a few seconds, that's it.

    IIS Users

    If you are using the microsoft IIS for webserver instead of apache, you will have to use the backslash syntax in ini.php instead. Here is the syntax, as taken from the ioncube site . . .

    Installation on a Windows Server

    You need a Loader called

    ioncube_loader_win_<php flavour>.dll

    <php flavour> will be 4.1, 4.2 or 4.3 - i.e the first 2 digits of your PHP version.

    Edit your php.ini file and add:

    zend_extension_ts = "<drive>:\<path>\ioncube_loader_win_<php flavour>.dll"

    where <drive> and <path> locate the Loader, and <php flavour> is whatever the correct value is for your system. If there are other zend_extension entries in the php.ini file place this new entry before the existing entries.

    e.g.

    zend_extension_ts = c:\WINNT\ioncube_loader_win_4.3.dll

    ----------------------------------

    I'm currently running WAMP5 v. 1.6.6

    Apache version : Apache/2.0.59 (Win32) PHP version : 5.2.0 Loaded extensions :

    bcmath, calendar, com_dotnet, ctype, session, filter, ftp, hash, iconv, json, odbc, pcre, Reflection, date, libxml, standard, tokenizer, zlib, SimpleXML, dom, SPL, wddx, xml, xmlreader, xmlwriter, apache2handler, mbstring, gd, mysql, mysqli, PDO, pdo_sqlite, SQLite, ionCube Loader

    MySQL version : 5.0.27-community-nt

  6. I hear ya, Jose, but can't agree, it would be a little foolish to have this as a regular feature of all products, a person with thousands of products certainly couldn't use it.

    Anyway, you can do this by adding a "sort number" to those products if you really want to.

    Create a new field in inventory table, call it chosen_sort_value or something. Asign position numbers to those 15 products from 1 to 15. Then, in includes/content/index.php add this sort code, or replace any existing sort code with it:

    SORT BY chosen_sort_value ASC

    or

    SORT BY chosen_sort_value DESC

    that code would go into the sql query that creates the product array for latest products. Sort either ascending (1-15) or descending (15 - 1) as it pleases you.

  7. No problem, AGTH :)

    BTW, I tried adding a news blog for one of my customers and kept having the same problem; it was nice to see that a member here found the way to code it in that post I gave above :)

    Very useful info, IMO

    For any other interested parties, this can usually be done without all the complication like this:

    $file = file_get_contents("http://www.mysite.com/include_news.php");

    $body->assign("NEWS", $file);

    And then call it in index.tpl using {NEWS}

    Is that how you did it, myka?

  8. hmm, please double-check the admin login details . . . pwd and login seem to be incorrect as posted.

    Also, please delete this info from your post, thousands read this forum.

    Please send correct login details to me via PM - use the PM button under my name or avatar or whatever. You can delete the info from your post above by using the edit button for your post

  9. well yes, you can make classes, for example at that site I made a single image with rounded corners for the "box top", and another for the "box bottom", so they were made to width for the area:

    top:

    homeContentTop.jpg

    bottom:

    homeContentFoot.jpg

    which is the same method used by CubeCart for side boxes in the Killer skin, so you can "stack" threee divisions, with image one as background for the .boxTopper division, image two as background for the .boxFooter division, and another division sandwiched between those two with the correct right and left border settings and background color to tie the three stacked divisions together and form a single box.

    There are other methods of doing this, each has advantages and disadvantages, but this is the way the boxes you mentioned were made.

    You have to code your divisions into the framework of all the content templates where you wish to use them, starting with styleTemplates/content/index.tpl where the welcome and latest products sections are defined.

    HTH

  10. I'm sorry for your troubles, it appears you have somehow jacked the installation. Your URL is a little screwy, you are in a sub-subdirectory from the root >

    sumpnutz.com/shopping/upload

    Why did you not simply install the store at shopping directory? Using the upload directory is causing problems accessing admin. FYI, as per installationn instructions, you need to upload all files from within upload folder, NOT the upload folder itself.

    Please re-install the software properly. CubeCart is a great software, and worth a few tries if you are making mistakes in installation.

  11. Brivtech - and ALL the moderators here - kudos to you all, you do a fantastic job and are a great lot of guys and gal(s) :D

    To those who are relatively new, believe me, the forum here is really a much better place for the rules. The rules here are not arbitrary, but were developed over time out of necessity.

    As for helpful info in this thread, here is some more, to whom it may concern:

    First, "How does the Featured Product box work in CubeCart?"

    • Featured Product is actually a random product taken from inventory on each page reload

    • On homepage, the random product is taken from the list of all products in inventory

    • When browsing the store, the random product is taken from the current category you are browsing.

    • When you browse a category that contains no products, the featured product box will disappear

    Second, "How may I exclude a single product from ever showing in Featured Product box?"

    • Using a text editor, find and open the file, includes/boxes/randomProd.inc.php

    • FIND the following block of code within that file, about lines 39 - 47:

    if(isset($_GET['catId'])){
    
    	
    
    	$whereClause = "WHERE cat_id=".$db->mySQLSafe($_GET['catId']);
    
    
    
    } else {
    
    
    
    	$whereClause = "";
    
    
    
    }

    • ALTER that code as indicated in red below:

    if(isset($_GET['catId'])){

    $whereClause = "WHERE productId != 10 AND cat_id=".$db->mySQLSafe($_GET['catId']);

    } else {

    $whereClause = "WHERE productId != 10";

    }

    • CHANGE the number 10 to the actual productId number of the product you wish to exclude

    • SAVE, CLOSE and UPLOAD the file to your store

    • Note: Take care the difference between productId and productCode :)

    Third, "How do I Gain Total Control Over this Box?"

    There are a great number of useful tweaks for this in the form of free and paid mods and little tweaks, all of which pretty much has been discussed repeatedly in this forum, try searching and reading topics for featured product and random product and you may find a great deal of info. Also, as written above, you may discuss this more freely in third party forums like Cubecartforums.org adn you may find direct links to mods by looking there and by searching google.

    A free mod was published well over a year ago by a person whom i do not believe is active any longer in the forums, but it is a very simple modifiaction involving adding one field to the database, then choosing to add or remove any product from the random products function in the admin add.edit product screen.

    Good luck and enjoy CubeCart! :)

  12. Very good points, hook B)

    @delicious, my own perspective: I surf the web with js disabled; call me outdated, I really don't care what you call me as long as the wife calls me for supper :P

    I use FireFox with the noscript extension, so I can easily enable js for any site I choose, and make it temporary or full-set, very very easily - and I know which scripts are running on a page, which ones are hosted by the site I visit and which are ported from other sites, etc. etc. etc. It is very easy in this day and age to have js enabled for shopping while disabled for the adservers at the ecommerce site, etc. etc. etc.

    I do not have stats behind me, but I have a very strong opinion here: Frankly, I do not believe that the problem you mention truly exists. Oh yes, I believe there may be people who would not shop because of js, but I think that very few shops might be affected by it, and that those people are few, so that their total impact is basically nil. I disbelieve your figures, and would have to see some very solid proof before I would accept them. Where is the evidence?

  13. harrdnut, your link will probably be fine if it is a javscript tutorial about slideshows. If it is strictly educational, it would benefit the members.

    The link restrictions here are meant to remove advertising by third-party CubeCart service providers, and to prevent anything even remotely approaching forum spamming by such.

  14. @offthehook, sorry mate, there is no right or wrong answer.

    As to hard-coding image paths, it is fine if you are making only one-off skins for yourself and others, but if you ever offer skins publicly, free or commercial, it is bad form. It takes away the ease with which a user may rename the skin file, and thus mars a bit of the beauty of the CubeCart coding method.

    As to editing core php files, this is a practical necessity in MOST cases, as MOST serious web stores will diverge from the out-of-box features of the cart. If you truly intend to change only skin files, that is ffine, but most of us will mod stores quite heavily where the core files are concerned and deal with upgrades by use of file compare programs where necessarry. Not such a problem, really.

    And it is quite possible that a person might code a variety skins that use similar format - like images in many template files, that bear the same names across skins but actuall have different appearances, etc. Basically, I'm writing in hope that you might be able to see that folk can have many reasons for taking certain approaches, and your method will not be pat for everyone. B)

  15. Actually, big part of the problem is php in the XTemplate files system. PHP is disallowed in XTemplate (which is xhtml with .tpl extension) and this is by design. It is cleaner coding. PHP is used in store core files, but not in skin files. This is why you are having trouble.

    Don't get frustrated. You have two options: 1. Code your php into a core file, like siteDocs.inc.php, or 2. Look for the commercial mod, Hide-show-order site docs anywhere. As a designer, you will appreciate the freedom it gives you in manipulating site docs - and also, it gives you the option of making any site doc a php doc, an html doc, or a wysiwyg editor doc . . .

    As usual, there are many ways to solve your problem with CubeCart, as you can learn a cleaner way of coding, purchase a very powerful third-party mod, or write your own mod. Life is grand <sigh> :blink:

  16. Well, great news on many of your errors, there is a fix posted in skins forum :blink:

    For instance, the first page you listed throws these errors:

    Result: 4 errors / 1 warning

    line 50 column 3 - Error: end tag for element "a" which is not open

    line 129 column 5 - Warning: cannot generate system identifier for general entity "nb"

    line 129 column 5 - Error: general entity "nb" not defined and no default entity

    line 129 column 7 - Error: reference to entity "nb" for which no system identifier could be generated

    line 129 column 4 - Info: entity was defined here

    line 197 column 7 - Error: reference to entity "nb" for which no system identifier could be generated

    line 129 column 4 - Info: entity was defined here

    The last three errors are all cuased by one item it is this: &nb ...

    This is due to the code for non-breaking space being truncated in the product description. Here is some information about fixing that issue: http://www.cubecart.com/site/forums/index....showtopic=27903

    The other errors are easily dealt with. I haven't had the time to post your answers, in fact I do this type work daily but hardly have time to do it for pay either, LOL

    I hope this fix helps, if you can apply it, should clear up many of these errors. :cry:

  17. Absolutely BEAUTIFUL, homar, in fact, this is a must-have and with your permission I will add it into the original tutorial!

    It is a must-have because . . . I have seen CubeCart pages fail validation due to this truncating. When something like &amp; gets truncated to &am it throws validation errors.

    Thank you for sharing this code function :blink:

    Edit: here is an example of the importance: http://www.cubecart.com/site/forums/index....showtopic=26873 :cry:

  18. joelgcr, please be more specific. I haven't a cluie what you mean. There are many here who struggle with English as second language, so don't be shy, try to explain more about what you want to do.

    Do you mean, How to insert banners like the ones above latest products at that site?

    Also, please pay no attention to Robsta, it is perfectly OK to get ideas for your site from an osCommerce site or anny other site for that matter */*

    Oh, sorry, Rob. :blink:

    Robsta is a dear friend, and I don't mean you should always ignore him, just this time :cry: LOL

×
×
  • Create New...