Community Forum

Please read the intro before joining/posting. Thank you.

If you have questions about our software, chances are this forum has the answers.

You'll need to register before you can post on the forum to ask your question or to answer another one. A reply will be posted to each and every question that is asked so there is no need to double post or bump your post. We'll do our best to answer promptly, but in some cases it may take a day or two. If you bump your post, it may be removed. Bear with us and we'll get your question answered quickly.

Here are a few tips to help you to get your questions answered more rapidly.

IMPORTANT: Posts in English only. We don't employ translators and we'll be unable to understand your message properly and will probably delete it.
SOFTWARE: Each software has it's own forum. Software here is NOT supported. Posts about this software will be deleted. Supported software questions ONLY please.
SEARCH: Use the search option to see if your question has been answered on the forum before now or if there is an answer in the documentation of your software.
PERSONAL SUPPORT: If you have purchased a commercial version of any software, using the contact option at the licence centre ensures a faster response.
AUTO DELETION: Accounts older than 5 days, with no posts or topics, are automatically deleted. Only register if you are thinking of posting.
LINKS: Any links posted are not clickable (to deter spammers) and must be copied / pasted into your browser address bar.

            

You are not logged in.

Custom TemplatesPosts in the Maian Cart forum by scarr105
scarr105
18-04-2012 20:10:21

David,

Do you have a problem with people sharing custom templates on the forum?  I was going to share a template I created that will show all items that were sold through your cart to the customer.  I didn't want to share if you prohibited stuff like that.  I'm not sure if most people would be interested in showing items that sold but we have had lots of users check out the items we have sold.  We sell antiques and I think people like looking at the items we sell.


scarr105

scarr105
19-04-2012 13:48:17

If anyone is interested in a custom template that will show all items sold to your customers, feel free to download this template.  My company sells antiques, so our customer wnat to see what we are selling and this template will allow you to do the same.  No prices are displayed just an image and description.  If you want to see prices there is a line of code you need to uncomment.  This template as give the customer the ability to search your sold items.

To see a live example check out [url]http://www.talquintradingco.com/storefront/np/sold-items/12/index.html[/url]

Download: [url]http://www.talquintradingco.com/downloads/Sold_Item.zip[/url] - updated 7/31/2012


Just unzip file and place the template in the customTemplate folder.

NOTE:
I'm not a programmer by trade, so some of the code may be able to be modified to perform better, feel free to make and changes you wish.  Just ask that if you share the updated file that you document the changes and comment your code.  If you have any issues with the template let me know and I will try and help where I can.

scarr105

MarcAq
19-04-2012 17:19:10

Thx for the template scarr105, I will give it a try.

scarr105
20-04-2012 02:47:41

maiandavid wrote:
Thanks Shane. I`ve made this post a sticky in case anyone else wants to share custom templates.

Thanks david

MarcAq wrote:
Thx for the template scarr105, I will give it a try

Please let me know how it works, this is the first time sharing code, so I hope I get everything correct. It's working on my site so I'm pretty sure it will on others.

scarr105

MarcAq
22-04-2012 19:01:21

scarr105 wrote:

Please let me know how it works, this is the first time sharing code, so I hope I get everything correct. It's working on my site so I'm pretty sure it will on others.

scarr105

Hi scarr105, I have not have the time to test it cus I been away from home no the road, But as soon as  do i will let u know.

I was checking out what u have done with your website and the cart script and I like it, I will love to do the same with my cart script. Its that like an include? or there is a lot of coding to make that template (i would like to call it frame) to include the cart script inside?

I'm not a coder nor a programmer or anything like that, i just have very basic knowledge. It would probably be a nice idea to be able to have a template selector, kind of thing, like in the admin section or even the main cart script page that would allow the user/admin to chose between different templates, including a mobile template, you know how on this days, all is about the mobiles and all that. Maybe you or David can help. thx

BTW I think I saw some where on the website a section for subjections, maybe I'll copy this idea on there.

MarcAq
23-04-2012 19:06:44

@ David, Can you make an included file version that can work from the outside of the store directory, Instead of using the index file with the actual heather and footer? Thx

scarr105
23-04-2012 19:55:55

MarcAq wrote:

Hi scarr105, I have not have the time to test it cus I been away from home no the road, But as soon as  do i will let u know.

I was checking out what u have done with your website and the cart script and I like it, I will love to do the same with my cart script. Its that like an include? or there is a lot of coding to make that template (i would like to call it frame) to include the cart script inside?

I'm not a coder nor a programmer or anything like that, i just have very basic knowledge. It would probably be a nice idea to be able to have a template selector, kind of thing, like in the admin section or even the main cart script page that would allow the user/admin to chose between different templates, including a mobile template, you know how on this days, all is about the mobiles and all that. Maybe you or David can help. thx

BTW I think I saw some where on the website a section for subjections, maybe I'll copy this idea on there.

MarcAq my site is designed with tables and css.  So the basics is to edit the templates/header.tpl.php with header code of your website and edit the templates/footer.tpl.php with your footer code.

In each one of those files you will see cart php code, so you just need to add your header code before the cart code and the footer code after the php code in the footer page.

Hopefully you can understand what I'm talking about but if you have questions let me know.

scarr105

MarcAq
27-04-2012 00:19:33

scarr105 wrote:
MarcAq wrote:

Hi scarr105, I have not have the time to test it cus I been away from home no the road, But as soon as  do i will let u know.

I was checking out what u have done with your website and the cart script and I like it, I will love to do the same with my cart script. Its that like an include? or there is a lot of coding to make that template (i would like to call it frame) to include the cart script inside?

I'm not a coder nor a programmer or anything like that, i just have very basic knowledge. It would probably be a nice idea to be able to have a template selector, kind of thing, like in the admin section or even the main cart script page that would allow the user/admin to chose between different templates, including a mobile template, you know how on this days, all is about the mobiles and all that. Maybe you or David can help. thx

BTW I think I saw some where on the website a section for subjections, maybe I'll copy this idea on there.

MarcAq my site is designed with tables and css.  So the basics is to edit the templates/header.tpl.php with header code of your website and edit the templates/footer.tpl.php with your footer code.

In each one of those files you will see cart php code, so you just need to add your header code before the cart code and the footer code after the php code in the footer page.

Hopefully you can understand what I'm talking about but if you have questions let me know.

scarr105

Thank you scarr105 I  will give that a try. BTW I tried your "sold_Item on my cart-script and it did not work that well, I was getting an error saying that "Could not connect: ". I been busy this pass few days trying to make some money lol and have not have the chance to play around with the script. I did re-install a clean cart v2.05 and and still getting the same error "Could not connect". This is the only thing I don't get: $Page_URL = "?np=12"; I havethe cart script as mydomain/store and when i click on the Sold Items link all i see after /store is ?np=12. can you help?

@ David Thx, so you dont like using the include, no problem. How about the idea of having the choice of more than the just the default template? maybe a mobile template?

scarr105
27-04-2012 02:18:43

MarcAq,

Can you provide the url to your cart. I'm not sure why the Could Not Connect error message is happening as long as you put the right info in the connection section at the top of the page.

As far as the $Page_URL you have right at ?np=12.  I may have some code wrong for those stores not set to use Search Friendly URLs.

I have found 1 issue with a piece of code will re-post once I have it fixed.  This issue should affect the Connection error issue you are having.

scarr105

scarr105
27-04-2012 02:27:28

Files have been updated. SOLD ITEMS TEMPLATE

Download: [url]http://www.talquintradingco.com/downloads/Sold_Item.zip[/url] - updated 4/27/2012

scarr105
27-04-2012 13:34:45

MarcAq,

Just realized the script will not work if you have Enable Search Engine Friendly URLs: Yes in the general settings.  I'm working to fix that now.  I've updated the download so you no longer have to edit the connection info, it just uses the connection info from the cart.

I updated the code to work with Search Engine friendly URLs being on or off.  Also you nolonger have to edit anything in the file.  It will get teh connection info form the cart script and will find page url by itself.  So you just need to copy the page into the customtemplate folder.

Download: [url]http://www.talquintradingco.com/downloads/Sold_Item.zip[/url] - updated 4/27/2012


scarr105

MarcAq
28-04-2012 04:25:30

OK scarr105 my url is xtremehangout.com/store i dont think I had enable the Search Engine friendly URLs because I have not done anything to the cart script, meaning is intact as i installed it on the server. I have not have the time to work on it, This is a e-store Im setting up for my wife so she can sell woman's stuff, but she is not ready as of yet, so im just getting familiar with it, before i take it live.

update: i dl ur new updated sold_item and it works perfectly thx scarr105. really appreciate i love how it works. I now have to work on some kind of header and footer lol l get it going sooner or later. thx again

Update 2 lol: two thing I noticed, if u uncoment the show price, it dont show the $ sign and if you uncoment the 'Click for Prices', you get a error page.

scarr105
28-04-2012 12:02:51

MarcAq,

Thanks for the update, glad it's working almost (lol).  Here is the qiuck fix, I will update the code later this weekend and post an update.

Find:
//UNCOMMENT TO SHOW PRICES
echo mc_txtParsingEngine($rowArray['salePrice']); 
echo "<a href='../membership.php'>Click for Prices</a>";

and change to 

//UNCOMMENT TO SHOW PRICES
echo "$".mc_txtParsingEngine($rowArray['salePrice']); 

or if you want the $ at the end of the price change to:
echo mc_txtParsingEngine($rowArray['salePrice'])."$"; 

That line for Click to see Prices shouldn't be there, that is part of another script I'm working on and forgot to remove it.

MarcAq
28-04-2012 18:25:35

Yeap scarr105 that did it. thx again.

BTW it would be nice if You or David would post a little tut on how to do add your own header and the footer. ...just a thought lol

scarr105
30-04-2012 02:25:52

Here is something quick I can share with you.

Open templates\header.tpl.php this code goes right after the body tag.

<table cellspacing="0" cellpadding="0" width="1012" align="center" border="0">
  <tr>
		<td>
<!-- MY HEADER START-->
<br />
<table cellspacing="0" cellpadding="0" width="100%" border="0">
  <tr>
    <td background="IMAGE.gif" valign="top"><img src="IMAGE.gif" /></td>
	</tr></table>
<table cellspacing="0" cellpadding="0" width="100%" border="0" class="B">
  <tr>
    <td valign="top">&nbsp;<br /></td>
	</tr></table>

<table cellspacing="0" cellpadding="0" width="100%" border="0" class="B">

  <tr>
    <td valign="top">
			<table cellspacing="0" cellpadding="0" width="100%" border="0">
  			<tr>
  			  <td colspan="2" valign="top" bgcolor="#CCCC99">
<!--MENU-->			  
MENU HERE
<!--END MENU-->
			  </td>
  			  </tr>
  			<tr>
  			  <td width="20%" valign="top">&nbsp;</td>
  			  <td valign="top" align="center">&nbsp;</td>
			  </tr>
  			<tr>
    			<td colspan="2" align="center" valign="top">
								
                <table width="96%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td background="TBG.gif"><img src="IMAGE.gif" width="980" /></td></tr>
                  <tr>
                    <td background="TBG.gif" valign="top">
                      
                      <table cellspacing="0" cellpadding="0" width="96%" border="0" align="center">
  <tr>
    <td valign="top" align="left">
	  <!-- MY HEADER END-->

<!--#######################################-->

Cart code will start here.............

As you can see I left a TD open on my last line, this TD tag will be closed in the footer template.  This way the cart is now within the borders of my table.

Hope that help a little, at this time I don't have the time to do a full how-to.

scarr105

MarcAq
30-04-2012 03:56:39

HI scarr105, please excuse my ignorance, I did copy/paste the code u gave me to the header, the only thing I didn't get was, what do I need to add or edit on the footer? do I copy the same code to the footer or what do I do to the footer?

scarr105
01-05-2012 17:52:41

OK, here is the remaining code for the file HTML/footer-commerical.htm.  For the free version this may have to go in another footer file.  If I were you I would purchase the commerical version and be done with it.  This is a great cart system and worth the money.

</td></tr></table></td></tr>
  <tr>
    <td>image</td></tr>
                </table></td>
</tr></table>

<br /><br />
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" >
  <tr>
    <td>image</td>
  </tr>
</table>     

<center>
Copyright<br />
<table border="0">
<tr>
<td>
facebook image and link</td>
<td>
<!-- BEGIN Attracta script -->
</td>
<td>
<!-- Site Meter script -->
</td>
<td>
Twitter image/link</td>
</tr>
</table>
</center>        
 

That is everything you should need, I hope that helps.

scarr105

MarcAq
01-05-2012 18:37:37

Sorry for the bother, scarr105 and thx for helping, that should work, no problems. BTW I do have a commerical version license.

scarr105
01-05-2012 18:40:27

No problem, glad I was able to help.

scarr105

MarcAq
02-05-2012 04:27:57

Hey scarr105 [url=http://xtremehangout.com/store/]HERE[/url] is what Im working on, still not as I want it, but getting there, If u look, the store, right below the nav buttons, there is a kind of gray background color that i cant get rid off. I want it to be white so it blends with all the other white parts, but I cant find where to change it.
One other thing is that I have specify that the 'Welcome to my e-store' and the below other line, is white but the damm font comes out black lol Im sure it may have to do with the code i , added. Also for some reason there is more space between the nav and the actual cart, dont know why caz in my home-test-server its not like that. But I get it to where I want it, thx for your code. I have not done anything to the footer, at least not yet, but Im sure Ill use that code too, maybe later.

BTW remember Im just trying different things to the cart script, so its not live yet. once I get the look im looking for Ill start building the rest.

scarr105
02-05-2012 11:10:25

Looks good, if you post it live to the Internet maybe I can look a source code and find the issue with that small part. I'll send you a quick email, let work on that off the forum that way we don't clog up this template forum.

scarr105

100% Free SoftwareSoftware Versions, Development, Docs & UpgradesHostingNewsletter
Made with in the U.K & Hong Kong

Free PHP Scripts / Responsive PHP Scripts / Lightweight PHP Scripts / White Label PHP Scripts