Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Adding to an existing web site

Adding to an existing web site

Locked

Views: 10,142

Results 61 to 73 of 73
This thread is locked. New replies are disabled.
9 Feb 2010, 8:02 PM
#61
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Adding to an existing web site

"I'm not sure how/where to store HTML referenced materials in ZC. I have .jpg, .png, .swf and .xml files that all need referenced by either HTML code in ZC or by the .swf files."

Product-related images would reasonably go in the base /images/ folder, where you would address them by
<img src="images/yourimage.gif" alt="Your Image" />

I'm not sure of the best place for .xml files; .js files have a special folder setup, described in detail in the wiki article on using javascript.

9 Feb 2010, 8:37 PM
#62
adalast avatar

adalast

New Zenner

Join Date:
Jan 2010
Posts:
38
Plugin Contributions:
0

Re: Adding to an existing web site

I emailed them and told them that most of their requests fall outside of the scope of work for the contract that they signed, so i'm not doing it. I am trying to get this done by the end of the week, so if they want stuff like that they get to pay me more money after I finish.

What I am thinking of doing is making 2 seperate products for the crystal diamonds, one for with the light stand and one for without, and 3 for the bibles, one for each option that they want. I know that is the easiest way to deal with the several options they are wanting. I would like to make the navigation options into flyout menus if that is at all possible. I know that will be needed if I am going to make this work. I searched the knowledge base and I cannot find any information on flyout/dropdown menus. Basically what I want is for the customer to roll over the "diamonds" nav option and have "w/lightstand" and "w/o lightstand" to pop out below it for them to select. Similar thing for the bibles.

9 Feb 2010, 9:36 PM
#64
adalast avatar

adalast

New Zenner

Join Date:
Jan 2010
Posts:
38
Plugin Contributions:
0

Re: Adding to an existing web site

Ok, that will work. I'll get on those when I get my products working right. Speaking of which... I cannot for the life of me figure out how to make it register as "in stock". below my image it says "0 units in stock" and the sales area has a red circle that says "sold out". How do I make my products work so I can add them to the cart? I have looked over the FAQs and I can't find a single entry that involves this problem... at all. The information about how to add products doesn't deal with it either.

edit: Also, how do I change the design by text at the bottom. I have completely modified that template and would like to claim it as my own.

9 Feb 2010, 9:38 PM
#65
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Adding to an existing web site

Is there a particular reason you don't want to have the lightstand as an attribute for the crystals? You could have a couple of additional images showing nice examples, and the selection would be straightforward (I think, not knowing the product).
If you need to allow different quantities of crystals and lightstands, that would be a reason to separate them.

To get the best possible attribute layout flexibility, with unlimited extra text sections between selection boxes, you might want to try my Flexible Attributes mod (not yet activated in Free Addons; you can get it from the support thread).

9 Feb 2010, 10:42 PM
#66
adalast avatar

adalast

New Zenner

Join Date:
Jan 2010
Posts:
38
Plugin Contributions:
0

Re: Adding to an existing web site

I figured out how to do the lightstands as an attribute and I think for now it will work. Their document they gave me has a seperate quantity field for the lightstands. They also want a discount on the price of 10 or more. I think that can be done, but I have to dig more. Right now my major problem is that I can't figure out how to make it so that i can add things to the cart. This is what I have right now for it. For some reason I cannot get the "out of stock" thing to go away and let me add things to the cart. Why is it doing that?

10 Feb 2010, 6:18 PM
#67
adalast avatar

adalast

New Zenner

Join Date:
Jan 2010
Posts:
38
Plugin Contributions:
0

Re: Adding to an existing web site

Ok, figured out the whole cart problem, now I'm facing another. Is there any way to completely remove the ability to make an account on the site? The client doesn't want that at all and when the customer goes to checkout, it's still asking them to make an account. How do I turn that off? I read on the FAQs that it's not possible, but is there an addon that would do it or something? This was something that my clients specifically did not want.

10 Feb 2010, 6:50 PM
#68
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Adding to an existing web site

You can't remove the requirement to enter the information, but you can change the output text to make it clear that the info is for being able to fulfill their order.
The COWOA mod will make the account optional, and I'm sure its support thread has info on removing the "account" choice completely. Look in the wiki for more info. A good thing about COWOA is that customers can purchase multiple times with the same e-mail address without causing a problem (only one account can be created for an e-mail address).

You can also (in admin) reduce the information that checkout asks for to the minimum necessary for order fulfillment.

10 Feb 2010, 9:40 PM
#69
adalast avatar

adalast

New Zenner

Join Date:
Jan 2010
Posts:
38
Plugin Contributions:
0

Re: Adding to an existing web site

I am trying to install the addon Fast and Easy Checkout, but I am running into some issues getting it to initialize. I did back up my server before I attempted to install it, so I will be able to restore it if need be.

Is there anything that I need to do to activate addons other than merge the files onto the server and run the sql installer files? I think I got everything put in there, though I may have messed up the order at one point, but I tried to fix it and it gave me an error saying that I was making duplicate entries. Should I roll back my server or am I missing something to get the addon turned on and working?

10 Feb 2010, 10:31 PM
#70
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Adding to an existing web site

Most mods are fully activated by installing their files (and running the SQL patch if there is one). You will likely need to adjust filepaths to your custom template name - if you fail to do that where required, the files are not installed on your template but in some boilerplate folder. Some mods have an admin switch or setting that needs to be made to select the desired function.

10 Feb 2010, 10:54 PM
#71
adalast avatar

adalast

New Zenner

Join Date:
Jan 2010
Posts:
38
Plugin Contributions:
0

Re: Adding to an existing web site

Where do I usually have to change the path, because in the instructions I was told to merge the files that came with the addon with my template. I did this, so the file should all be in the right place. Maybe that order thing did mess me up. I will try fixing that now and get back to you guys after I get it done over again.

11 Feb 2010, 8:08 PM
#72
adalast avatar

adalast

New Zenner

Join Date:
Jan 2010
Posts:
38
Plugin Contributions:
0

Re: Adding to an existing web site

OK... wth is going on here? I think this is what is wrong with that addon... and I have no idea how to fix it. At the top of the page, this code has appeared:

// $origin_href = zen_back_link_only(true); $_SESSION['navigation']->clear_snapshot(); zen_redirect($origin_href); } else { zen_redirect(zen_href_link(FILENAME_DEFAULT, '', $request_type)); } } } } } if ($error == true) { $zco_notifier->notify('NOTIFY_LOGIN_FAILURE'); } $breadcrumb->add(NAVBAR_TITLE); // Check for PayPal express checkout button suitability: $paypalec_enabled = (defined('MODULE_PAYMENT_PAYPALWPP_STATUS') && MODULE_PAYMENT_PAYPALWPP_STATUS == 'True'); // Check for express checkout button suitability: $ec_button_enabled = ($paypalec_enabled && ($_SESSION['cart']->count_contents() > 0 && $_SESSION['cart']->total > 0)); // check if shipping address should be displayed if (FEC_SHIPPING_ADDRESS == 'true') $shippingAddressCheck = true; // check if the copybilling checkbox should be checked if (FEC_COPYBILLING == 'true') $shippingAddress = true; else $shippingAddress = false; if (FEC_ORDER_TOTAL == 'true' && $_SESSION['cart']->count_contents() > 0) { require(DIR_WS_CLASSES . 'order.php'); $order = new order; require(DIR_WS_CLASSES . 'order_total.php'); $order_total_modules = new order_total; $fec_order_total_enabled = true; } else { $fec_order_total_enabled = false; } // check if country field should be hidden $numcountries = zen_get_countries(); if (sizeof($numcountries) <= 1) { $disable_country = true; } else { $disable_country = false; } // This should be last line of the script: $zco_notifier->notify('NOTIFY_HEADER_END_LOGIN'); $zco_notifier->notify('NOTIFY_HEADER_END_EASY_SIGNUP'); ?> eLabel").setAttribute('className', 'hiddenField'); document.getElementById("stText").className = 'hiddenField'; document.getElementById("stText").setAttribute('className', 'hiddenField'); document.getElementById("stBreak").className = 'hiddenField'; document.getElementById("stBreak").setAttribute('className', 'hiddenField'); } function hideStateFieldShipping(theForm) { theForm.state_shipping.disabled = true; theForm.state_shipping.className = 'hiddenField'; theForm.state_shipping.setAttribute('className', 'hiddenField'); document.getElementById("stateLabelShipping").className = 'hiddenField'; document.getElementById("stateLabelShipping").setAttribute('className', 'hiddenField'); document.getElementById("stTextShipping").className = 'hiddenField'; document.getElementById("stTextShipping").setAttribute('className', 'hiddenField'); document.getElementById("stBreakShipping").className = 'hiddenField'; document.getElementById("stBreakShipping").setAttribute('className', 'hiddenField'); } function showStateField(theForm) { theForm.state.disabled = false; theForm.state.className = 'inputLabel visibleField'; theForm.state.setAttribute('className', 'visibleField'); document.getElementById("stateLabel").className = 'inputLabel visibleField'; document.getElementById("stateLabel").setAttribute('className', 'inputLabel visibleField'); document.getElementById("stText").className = 'alert visibleField'; document.getElementById("stText").setAttribute('className', 'alert visibleField'); document.getElementById("stBreak").className = 'clearBoth visibleField'; document.getElementById("stBreak").setAttribute('className', 'clearBoth visibleField'); } function showStateFieldShipping(theForm) { theForm.state_shipping.disabled = false; theForm.state_shipping.className = 'inputLabel visibleField'; theForm.state_shipping.setAttribute('className', 'visibleField'); document.getElementById("stateLabelShipping").className = 'inputLabel visibleField'; document.getElementById("stateLabelShipping").setAttribute('className', 'inputLabel visibleField'); document.getElementById("stTextShipping").className = 'alert visibleField'; document.getElementById("stTextShipping").setAttribute('className', 'alert visibleField'); document.getElementById("stBreakShipping").className = 'clearBoth visibleField'; document.getElementById("stBreakShipping").setAttribute('className', 'clearBoth visibleField'); } //--> TE_ERROR_SELECT . '");' . "\n"; ?> check_select("country", "", "You must select a country from the Countries pull down menu."); check_input("telephone", 3, "Your Telephone Number must contain a minimum of 3 characters."); check_password("password", "confirmation", 5, "Your Password must contain a minimum of 5 characters.", "The Password Confirmation must match your Password."); check_password_new("password_current", "password_new", "password_confirmation", 5, "Your Password must contain a minimum of 5 characters.", "Your new Password must contain a minimum of 5 characters.", "The Password Confirmation must match your new Password."); if (error == true) { alert(error_message); return false; } else { submitted = true; return true; } } //-->

    * Home
    * Log In
    * Shopping Cart
    * Checkout

I have no idea where that came from. The only thing I can think of is that somehow my addon messed up and now I have this partial code bit here. Any ideas?

11 Feb 2010, 8:33 PM
#73
adalast avatar

adalast

New Zenner

Join Date:
Jan 2010
Posts:
38
Plugin Contributions:
0

Re: Adding to an existing web site

Also, how would I put together a php script file that could communicate attributes to the cart? I am going to need it for my box builder. I know how to make flash execute a .php script when a button is clicked, which is how I am planning to get the sales information out of flash. I just need to know how to get it from there and into the cart.