Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

what the!?? (screen shot)

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-30-2007, 11:18 PM
 
eurojet eurojet is offline
 

Member
  
Join Date: Dec 2007
Posts: 12
 

Default what the!?? (screen shot)

ok now im really confused... the only thing i have done is change colors and add product... can someone tell me what is going on here?
http://www.authorityzero.com/subdomains/rd/eurojetSS.jpg
and while your at it can you tell me why when i click on the catagory that my products are not coming up as thumbnails but rather as pages... (probably the same issue)
thanks
JIM
__________________
xcart version 4.1.6
Reply With Quote
  #2  
Old 01-01-2008, 07:02 PM
 
eurojet eurojet is offline
 

Member
  
Join Date: Dec 2007
Posts: 12
 

Default Re: what the!?? (screen shot)

does anyone have a clue why the store would be doing this?
__________________
xcart version 4.1.6
Reply With Quote
  #3  
Old 01-01-2008, 07:52 PM
 
Asiaplay Asiaplay is offline
 

X-Wizard
  
Join Date: Oct 2005
Posts: 1,242
 

Default Re: what the!?? (screen shot)

Hi Eurojet...

I guess... that when you were changing the colours in your tables, you accidentally deleted some of the original X-Cart code (e.g. a closing </if> etc.).
Also you might have changed the "product_t.tpl" to "product.tpl" somewhere by accident.

Check your original "product.tpl" and "products_t.tpl" table php page - as this is the one which I understand controls categories pages (while product.tpl controls your product page). Check to see if you have accidentally deleted some code in those two files when you changed the colours.

Cheers - Asiaplay

PS: using FTP to log-in to your site... the original X-Cart coding before you changed the php file, can be found under your "skin1_original/customer/main" directory and the present code you are using, can be found under "skin1/customer/main" directory.
__________________
X-Cart Gold version 4.1.9
(plus built in X-Cart bugs!)
Reply With Quote
  #4  
Old 01-01-2008, 08:12 PM
 
eurojet eurojet is offline
 

Member
  
Join Date: Dec 2007
Posts: 12
 

Default Re: what the!?? (screen shot)

hey aisaplay thanks for the response
actually i haven't accessed the php files at all....
the only thing i did was activate the products in my store and this came up, and the only files i have worked with have been the tpl files...
any other suggestions?
is there any access to the php files othere than on the ftp server?
__________________
xcart version 4.1.6
Reply With Quote
  #5  
Old 01-01-2008, 08:15 PM
 
eurojet eurojet is offline
 

Member
  
Join Date: Dec 2007
Posts: 12
 

Default Re: what the!?? (screen shot)

wow hahah i hit quick reply once and it posted like 5 times... intersting. i just noticed the p.s. on your post.
still... never accessed any of the php files.
__________________
xcart version 4.1.6
Reply With Quote
  #6  
Old 01-02-2008, 12:39 PM
 
Asiaplay Asiaplay is offline
 

X-Wizard
  
Join Date: Oct 2005
Posts: 1,242
 

Default Re: what the!?? (screen shot)

Quote:
Originally Posted by eurojet
and the only files i have worked with have been the tpl files...

Yes...
The table files (.tbl) and (.php) you can also change from within X-Cart Admin (manually changed via X-Cart Admin Webmaster mode or files sections) - these are the same files which are possible to access via FTP (so I guess you have changed the product_t.tbl and product.tbl)... you have changed some of those - yes?

If yes, then check them against the originals... basically what you are seeing is the product.tbl appearing for categories (when you should be seeing the product_t.tbl) - if my memory serves me correctly.
So suggests to me, that you have accidentally deleted something when you changed the colours.

Cheers - Asiaplay

PS: Original files can also be also be seen in the zipped package you downloaded from X-Cart (or received when bought X-Cart)... use IZARC or Winzip to extract the same files you have changed manually to compare them.
__________________
X-Cart Gold version 4.1.9
(plus built in X-Cart bugs!)
Reply With Quote
  #7  
Old 01-02-2008, 04:41 PM
 
eurojet eurojet is offline
 

Member
  
Join Date: Dec 2007
Posts: 12
 

Default Re: what the!?? (screen shot)

ok....
i have never accessed any files but the .tpl files and the skin1.css.
i have never touched any file ending in .tbl nor .php or anything else.
i took a look at teh php file just now but that stuff is japanese to me... i know my basic html and css and thats it.
i dont have the origional download for this because i am doing this for a friend...
the person messing with this store before me might have messed something up but i have no idea how to tell because i dont understand .php
im extreemly confused here... sorry im such a newbee at this but you'll have to explain it to me as if im a 3 year old hahah cause i sure do feel like one...
thanks
__________________
xcart version 4.1.6
Reply With Quote
  #8  
Old 01-02-2008, 04:50 PM
 
eurojet eurojet is offline
 

Member
  
Join Date: Dec 2007
Posts: 12
 

Default Re: what the!?? (screen shot)

here is the code to my product.php page...
PHP Code:
#
# $Id: product.php,v 1.21.2.4 2006/12/07 08:28:02 svowl Exp $
#

define('OFFERS_DONT_SHOW_NEW',1);
require 
"./auth.php";

x_load('product');

#
# Put all product info into $product array
#

$product_info func_select_product($productid, @$user_account['membershipid']);
if (
intval($cat) == 0) {
    
$cat $product_info["categoryid"];
}

$main "product";
$smarty->assign("main",$main);

if (!empty(
$product_info["productid"])) {
    
$product_info["meta_descr"] = strip_tags($product_info["descr"]);
    
$product_info["meta_keywords"] = strip_tags($product_info["product"])." ".preg_replace("/[^a-zA-Z0-9]/"" "strip_tags($product_info["descr"]));
}

include 
$xcart_dir.DIR_CUSTOMER."/send_to_friend.php";

if (!empty(
$send_to_friend_info)) {
    
$smarty->assign("send_to_friend_info"$send_to_friend_info);
    if (!empty(
$active_modules['Image_Verification'])) {
        
$smarty->assign("antibot_err"$send_to_friend_info['antibot_err']);
    }
    
x_session_unregister("send_to_friend_info");
}

if (!empty(
$active_modules["Detailed_Product_Images"]))
    include 
$xcart_dir."/modules/Detailed_Product_Images/product_images.php";

if (!empty(
$active_modules["Magnifier"]))
    include 
$xcart_dir."/modules/Magnifier/product_magnifier.php";

if (!empty(
$active_modules["Product_Options"]))
    include 
$xcart_dir."/modules/Product_Options/customer_options.php";

if (!empty(
$active_modules["Upselling_Products"]))
    include 
$xcart_dir."/modules/Upselling_Products/related_products.php";

if (!empty(
$active_modules["Advanced_Statistics"]) && !defined("IS_ROBOT"))
    include 
$xcart_dir."/modules/Advanced_Statistics/prod_viewed.php";

if (
$active_modules["Manufacturers"])
    include 
$xcart_dir."/modules/Manufacturers/customer_manufacturers.php";

if (
$product_info["product_type"] != "C") {
    
#
    # If this product is not configurable
    #
    
if ($config["General"]["disable_outofstock_products"] == "Y" && empty($product_info['distribution'])) {
        
$is_avail true;
        if (
$product_info['avail'] <= && empty($variants)) {
            
$is_avail false;
        }
        elseif(!empty(
$variants)) {
            
$is_avail false;
            foreach(
$variants as $v) {
                if (
$v['avail'] > 0) {
                    
$is_avail true;
                    break;
                }
            }
        }

        if(!empty(
$cart['products']) && !$is_avail) {
            foreach(
$cart['products'] as $v) {
                if(
$product_info['productid'] == $v['productid']) {
                    
$is_avail true;
                    break;
                }
            }
        }

        if(!
$is_avail) {
            
func_header_location("error_message.php?access_denied&id=44");
        }
    }

    if(!empty(
$active_modules["Extra_Fields"])) {
        
$extra_fields_provider=$product_info["provider"];
        include 
$xcart_dir."/modules/Extra_Fields/extra_fields.php";
    }

    if(!empty(
$active_modules["Subscriptions"])) {
        
$_products $products;
        
$products = array($product_info);
        include_once 
$xcart_dir."/modules/Subscriptions/subscription.php";
        
$products $_products;
    }

    if(!empty(
$active_modules["Feature_Comparison"]))
        include 
$xcart_dir."/modules/Feature_Comparison/product.php";

    if (!empty(
$active_modules["Wholesale_Trading"]) && empty($product_info['variantid']))
        include 
$xcart_dir."/modules/Wholesale_Trading/product.php";

    if (!empty(
$active_modules['Product_Configurator']) && !empty($HTTP_GET_VARS['pconf']))
        include 
$xcart_dir."/modules/Product_Configurator/slot_product.php";
        
}

if (!empty(
$active_modules["Recommended_Products"]))
    include 
"./recommends.php";

if (!empty(
$active_modules["SnS_connector"]))
    include 
$xcart_dir."/modules/SnS_connector/product.php";

include 
"./vote.php";

require 
$xcart_dir."/include/categories.php";

if (!empty(
$current_category) and is_array($current_category["category_location"])) {
    foreach (
$current_category["category_location"] as $k=>$v)
        
$location[] = $v;
}

if (!empty(
$product_info)) $location[] = array($product_info["product"],"");

if (!empty(
$active_modules["Special_Offers"])) {
    include 
$xcart_dir."/modules/Special_Offers/product_offers.php";
}

$smarty->assign("product",$product_info);

if (
$active_modules["Bestsellers"])
    include 
$xcart_dir."/modules/Bestsellers/bestsellers.php";

# Assign the current location line
$smarty->assign("location"$location);

func_display("customer/home.tpl",$smarty);
?> 
__________________
xcart version 4.1.6
Reply With Quote
  #9  
Old 01-02-2008, 05:13 PM
 
eurojet eurojet is offline
 

Member
  
Join Date: Dec 2007
Posts: 12
 

Default Re: what the!?? (screen shot)

FIXED!
i just noticed that the person before me had the "appearence" section set to only display 1 product per page so it was messing everything up....
thanks asiaplay for your help with this!
__________________
xcart version 4.1.6
Reply With Quote
  #10  
Old 01-03-2008, 12:57 AM
 
Asiaplay Asiaplay is offline
 

X-Wizard
  
Join Date: Oct 2005
Posts: 1,242
 

Default Re: what the!?? (screen shot)

opps - glad to hear you fixed it - sorry... forgot about that function (never tried setting to 1 before - lol)

Happy to hear works now - cheers, Asiaplay
__________________
X-Cart Gold version 4.1.9
(plus built in X-Cart bugs!)
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:42 AM.

   

 
X-Cart forums © 2001-2020