well, seems it spits out the code as html.
check if you forgot the opening php tags <?php in front of the code.
Type: Posts; User: crazy_chris
well, seems it spits out the code as html.
check if you forgot the opening php tags <?php in front of the code.
Guarantee:
<?php if (!empty($product_info->fields['products_guarantee'])) echo $product_info->fields['products_guarantee']; ?>
hey, sorry; i think i misunderstood your question.
forget about "(($i<$n) && ($i < YOUR_MAX_NUMBER))"
if you just want to output the total number of displayed products, this piece of code...
sure
this is line 5:
for ($i=0, $n=sizeof($products); $i<$n; $i++) {
change it to:
for ($i=0, $n=sizeof($products); (($i<$n) && ($i < YOUR_MAX_NUMBER)); $i++) {
to get the shopping cart in the header, read this thread.
it's mainly about the code you need to put in tpl_header.php though.
you could give that new div an absolute position, so it's kinda...
check out the template-basics in this thread.
the footer file is your_template_dir/common/tpl_footer.php. it should contain this code:
<div id="siteinfoLegal" class="legalCopyright"><?php echo...
hey all,
maybe offtopic, but i wanted to sum this infos up, just to have a quick overview of the basic techniques for modifying and re-writing parts of zencart.
useful
zencart forum
...
sure.
i'd suggest to connect the header-image to the cPath (it's easy).
basics
each category has it's own cPath. the first step is to write down which categories you want to use and their...
hey,
to your css-question:
zencart loads all .css files in "your_template_dir/css". it's best to create a new stylesheet for your own code called something like 'stylesheet_newelements.css'. add...
hey there,
first of all, i do not completely understand what you mean, maybe you can explain it again...
also, there is no float-value like center. read more here: float @ w3schools.com
an...
could you please express more clearly what you want to do?
yeah, i also used "includes/modules/pages/login/header_php.php"
i simply added "customers_lastname" to $check_customer_query at line 44
$check_customer_query = "SELECT customers_id,...
depends where you put that code :D
heh, just joking... if you want to customize your shop, you usually create your own template first. for most layout changes, you need to edit files inside the...
one of the problems i experienced with ie6 and zc is, that ie does sometimes not like "<br style="clear:both">" tags (of which zc uses plenty).
using "<div style="clear:both"></div>" instead seem to...
to get the same display as in the shopping_cart sidebox, add this code at the bottom (or anywhere else) of "YOUR_TEMPLATE_DIR/common/tpl_header.php"
the cart-content is wrapped in a <div> tag with...
it will work best if you set it up from scratch
but just to be on the safe side, make a copy of your folder and the database, then wipe it all and do a clean setup.
copy your folder
mkdir...
try that:
login as root
execute that command:
chmod 777 /catalog/pub -Ras root you can change the permissions for every folder, and the -R option with chmod sets the permission recursively (for...
this looks good...
well done ryk!
:bigups:
hey,
fine that it's working!
thanks for the feedback - i see what you mean and totally agree. i'll try to be more specific in the future :)
if you want to realease it as module, go ahead....
no, 72 is too early, better go around 90 after the "$_SESSION['..." part.
the best place is just after $_SESSION['cart']->restore_contents(); which is line 91 here.
this is very important and...
hehe, alright then :P
well, it seems, it doesn't find the customer_id in the cookie.
could you please add this code before the "$c = explode(....)":
"echo...
hey, is this a joke... because you just put the lines in the wrong file!! :blush:
the code you just posted (for automatically logging in) is meant to be put in...
i also agree to what kim said.
i'm dealing with zencart for a few weeks now to make a cusomized printer-shop and my overall impression is that it's really easy to customize zencart for any basic...
hey, no problem!
it's a template file you should first copy into your own template-directory.
copy the file "includes/templates/template_default/templates/tpl_login_default.php" to...
hi.
first of all, add a checkbox to your login-form called something like "permLogin".
_
edit the file "/includes/modules/pages/login/header_php.php"
if the login is ok, zencart will proceed to...
okay, i'll write a brief explanation of that.
but tomorrow... :P
sorry, my mistake.
of course i can store the password from the db in the cookie and have not to deal with this extendet encryption method :P
sorry, but WHY wouldn't you take md5-encryption for the customers password?
zen_validate_password doesn't help any, because that function deals with the unencrypted password as value.
in the...
okay, that works really nice.
but since it's so easy to modify cookies, how to make it safe?
store the password as md5-string in the cookie?
hey,
how could it be possible to let users "stay logged in on this computer" (auto / permanent login)?
thx
problem solved.
here is the how-to
hi folks,
this is a little howto add new properties to general products
(like guarantee time, color, oem-number, compatible models, whatsoever)
think
decide which new properties you want to...
well, i do know a bit of php/mysql - that shouldn't be the problem. but i intendet my shop to be upgradeable and hoped, there was a solution for this more-or-less everyday problem to add new fields...
hey, please help...
some of you sure know how to add extra values / info-fields to products.
would i need to setup my own product_type?
:cry:
hey folks,
I'd like to add a "guarantee time" field to the product input mask. how could i possibly do that?
i believe it's not an attribute since they are for colors, etc... do i need to...
hey,
okay, i have $_SESSION['customer_first_name'], but where can i find the family name?
thx for any help!
thanks a lot!
hy,
i want to link a product to more than 1 category.
i found infos that zenCart can do that, but i found nowhere how...
please help me on how i can do that!
thx
chris