Zen Cart Logo
Forums / General Questions / Can this be possible?????

Can this be possible?????

Locked

Views: 4,760

Results 1 to 20 of 40
This thread is locked. New replies are disabled.
21 Oct 2007, 1:54 AM
#1
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,682
Plugin Contributions:
0

Can this be possible?????

ok I have moved the shop from:

https://www.mydomain.com to https://www.mydomain.com/zen

my question is can it be possible to put a What's New "What's new for Month" module as an Element to put into an HTML for the main domain? I hope anyone understands what I am talking about......

21 Oct 2007, 2:30 AM
#3
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,682
Plugin Contributions:
0

Re: Can this be possible?????

econcepts,

that isn't what I am looking for. what this is a sideboxes for your zen cart store itself.

21 Oct 2007, 2:42 AM
#4
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,682
Plugin Contributions:
0

Re: Can this be possible?????

my main web page is http://www.mtechama.com uses C.M.S. e107 and I want to put an whats new element there in the middle? that is what I want to do.

21 Oct 2007, 12:04 PM
#5
econcepts avatar

econcepts

Totally Zenned

Join Date:
Dec 2005
Posts:
1,505
Plugin Contributions:
2

Re: Can this be possible?????

Several options.

  1. use the information I posted previously and CREATE your own include for the what's new section (that is what I meant when I sent over that last link and said you could start here). That post isn't a sidebox for your store, it shows you HOW to include a side box on an EXTERNAL page (outside of the zen cart structure). There are a few other tutorials ("Ideasgirl" does a good job of showing it) on the zen site.

  2. Hard code a section called what's new into the home page (if that page resides outside of zen cart)

  3. Use your zen cart admin to simply tell the cart to include the whats new onto the home page (if it resides within the zen cart structure). Admin > Configuration > Index Listing will get you there.

Good luck!

21 Oct 2007, 7:23 PM
#6
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,682
Plugin Contributions:
0

Re: Can this be possible?????

econcept,

I have tried all that but It didn't work any other suggestions....
here is the PHP inside of a HTML code that I am using.

<?php
<font size="3"><span style="font-weight: bold;">
Welcome to Morris Technologies and Gift Shop. Please </span><a href="http://www.mtechama.com/signup.php" style="font-weight: bold;">register here</a></font><span style="font-weight: bold;"><font size="3"> to recieve the following e-mails:<br /><br />*E-News<br />*E-Promotions<br />*E-Specials<br />*E-Site Updates<br />*E-New Products & Services <br />and much more<br /><br />If you need Technical Support please <a href="http://www.mtechama.com/e107_plugins/forum/forum.php">click here</a> to go our support forum.</font><br /></span>
<br><br>
<table border="1" width="49%">
$zcSBmodule = 'whats_new.php';	<tr>
		<td width="181">
		<p align="center">
		<a href="http://www.mtechama.com/gift_shop/index.php?main_page=product_info&cPath=6&products_id=5">
		<img border="0" src="http://www.mtechama.com/gift_shop/images/70900.jpg" width="101" height="101"><br>
		World Of Products<br>
		$6.75</a></td>
		<td width="179">
		<p align="center">
		<a href="http://www.mtechama.com/gift_shop/index.php?main_page=product_info&cPath=1&products_id=1">
		<img border="0" src="http://www.mtechama.com/gift_shop/images/34830.jpg" width="107" height="107"><br>
		3pc. Fabric Xmas Bears<br>
		$119.95</a></td>
		<td> </td>
	</tr>
	<tr>
		<td width="181"> </td>
		<td width="179"> </td>
		<td> </td>
	</tr>
	<tr>
		<td width="181"> </td>
		<td width="179"> </td>
		<td> </td>
	</tr>
</table>
<p><center>
<img border="0" src="http://www.mtechama.com/gift_shop/images/ClearwireWhite.jpg" width="213" height="101">   <img border="0" src="http://www.mtechama.com/gift_shop/images/Microsoft_Windows_logo.jpg" width="147" height="101">  <img border="0" src="http://www.mtechama.com/gift_shop/images/p4_logo.jpg" width="77" height="101">   <img border="0" src="http://www.mtechama.com/gift_shop/images/semp-amd-logo.jpg" width="124" height="102"></p></center>
<p> </p>
?>

Wade

21 Oct 2007, 9:12 PM
#7
gjh42 avatar

gjh42

Black Belt

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

Re: Can this be possible?????

The only actual PHP in the code you posted is
$zcSBmodule = 'whats_new.php';
which simply sets a variable equal to a string. The <?php ?> tags should be just around that, not around the whole HTML code; but it will not accomplish anything anyway.

What you have tried here is #2 (hardcode a what's new section). Exactly how does it not work? What results do you get? What error messages do you get?

21 Oct 2007, 9:16 PM
#8
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,682
Plugin Contributions:
0

Re: Can this be possible?????

gjh42,

I am using a CMS of e107 here is my main page http://www.mtechama.com and my zen cart area is http://www.mtechama.com/gift_shop/index.php you can see it in the middle of the page.

21 Oct 2007, 9:31 PM
#9
gjh42 avatar

gjh42

Black Belt

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

Re: Can this be possible?????

This is actually working exactly as you are telling it to. All of the HTML is functioning, and it doesn't understand what to do with the <?php and $zcSBmodule = 'whats_new.php';, so it simply outputs them as text. What file is the code contained in? Does it have a .php extension?

21 Oct 2007, 9:35 PM
#10
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,682
Plugin Contributions:
0

Re: Can this be possible?????

Glenn what do you mean php extistion....

Wade

21 Oct 2007, 11:32 PM
#11
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,682
Plugin Contributions:
0

Re: Can this be possible?????

I did everything but I haven't accomplished anything.

21 Oct 2007, 11:38 PM
#12
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: Can this be possible?????

in order for the file to read the <?php and actually treat it as php and not text the file needs to be named .php

21 Oct 2007, 11:41 PM
#13
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,682
Plugin Contributions:
0

Re: Can this be possible?????

Marlin are you fimilar with CMS e107?

22 Oct 2007, 12:47 AM
#14
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: Can this be possible?????

Nope,
but Im assuming that you are trying to use the code listed above in an index.html
this wont work since the machine needs to know that it needs to use php

22 Oct 2007, 12:47 AM
#15
gjh42 avatar

gjh42

Black Belt

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

Re: Can this be possible?????

OK, so e107 is a PHP/mySQL based CMS... It should not have any inherent problems with a php file. You need to learn from e107 how to use PHP in files in their system. They seem to have an active forum that should be able to help you.

22 Oct 2007, 5:20 AM
#16
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,682
Plugin Contributions:
0

Re: Can this be possible?????

I am creating a PHP file call test.php here is the code:

<?php
require('gift_shop/includes/application_top.php');
$zcSBmodule = 'new_products.php';
$zcSBlayout = 'left';
require('gift_shop/single_sidebox.php');
?>

can someone tell me what I am doing wrong?

2 Jan 2008, 10:10 PM
#17
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,682
Plugin Contributions:
0

Re: Can this be possible?????

Ok I got the single side box to work with no images. but that mod. is for sideboxes only that isn't what I am looking for I want to pull an element for Whats New in January module like these files (includes/modules/new_products.php)........... can anyone help me please..

3 Jan 2008, 3:20 AM
#18
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,682
Plugin Contributions:
0

Re: Can this be possible?????

can anyone help me on this????

3 Jan 2008, 5:03 AM
#19
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Can this be possible?????

mtechama:

Ok I got the single side box to work with no images.The images aren't showing ... because they're being pointed to the wrong location: "/home/content/m/o/r/morristech/html/gifts/images/38881.jpg"

Try commenting out this line in your single_sidebox.php script, by adding 2 slashes, as shown:```
[B]//[/B] define('DIR_WS_IMAGES', $zcDir . '/images/');

3 Jan 2008, 5:09 AM
#20
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,682
Plugin Contributions:
0

Re: Can this be possible?????

DrByte

Is it possible to have the New Products Module like the big box in the middle of the store that has 9 products in module box. outside zen cart. has this ever been done?

Wade