Results 1 to 10 of 10
  1. #1
    Join Date
    Dec 2010
    Posts
    94
    Plugin Contributions
    0

    Default editing define_main_page.php

    fresh install of 1.5.5 and using responsive classic template.

    Have edited /includes/languages/english/html_includes/responsive_classic/define_main_page.php
    but am having an issue with top two products: One is an ebook and one is a paperback and I wanted to identify this under the book title and above the price but my html work is not showing. Can you tell me why?

    <div class="centerBoxContentsNew centeredContent back" style="width:50%;"><a href="http://www.pkasperassociates.com/classes/index.php?main_page=product_info&amp;cPath=65&amp;products_id=180"><img src="images/ebooks/six-strategies-bookcover.jpg" alt="Six Strategies to be a More Effective and Efficient Monitor" title="Six Strategies to be a More Effective and Efficient Monitor" width="200" height="227" /></a><br /><a href="http://www.pkasperassociates.com/classes/index.php?main_page=product_info&amp;cPath=65&amp;products_id=180">Six Strategies to be a More Effective and Efficient Monitor/a><br />iBooks or Kindle<br /><span class="productBasePrice">$44.99</span></div>
    <div class="centerBoxContentsNew centeredContent back" style="width:50%;"><a href="http://www.pkasperassociates.com/classes/index.php?main_page=product_info&amp;cPath=68&amp;products_id=186"><img src="images/ebooks/six-strategies-bookcover.jpg" alt="Six Strategies to be a More Effective and Efficient Monitor" title="Six Strategies to be a More Effective and Efficient Monitor" width="200" height="227" /></a><br /><a href="http://www.pkasperassociates.com/classes/index.php?main_page=product_info&amp;cPath=68&amp;products_id=186">Six Strategies to be a More Effective and Efficient Monitor</a><br />Paperback<br /><span class="productBasePrice">$44.99</span></div>

    The code in the above - "<br />iBooks or Kindle" and "<br />Paperback" - do not show up on the web page: pkasperassociates.com/classes/

    I have tried to put "iBooks or Kindle" and "Paperback" within the </a> and in the same line with the title, without the <br />, and this doesn't work either.

  2. #2
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: editing define_main_page.php

    Shows for me, including the code error that remains in the define_main_page.php for the "closing" html tag for the link associated with iBooks or Kindle as seen in the attached image taken from my mobile device.
    On second thought, I'm removing the pic so that I can blur some things in it (ie. Price) will attach the newly edited in a moment.
    Last edited by mc12345678; 28 Jun 2018 at 01:46 AM.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: editing define_main_page.php

    Sorry, harder than I expected to try to blur just a portion of an image or block it out, etc...

    Anyways, note the following:
    Code:
    =180">Six Strategies to be a More Effective and Efficient Monitor/a><br />iBooks or Kindle<br />
    As compared to:
    Code:
    =180">Six Strategies to be a More Effective and Efficient Monitor</a><br />iBooks or Kindle<br />
    And how </a><br /> was /a><br />.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  4. #4
    Join Date
    Dec 2010
    Posts
    94
    Plugin Contributions
    0

    Default Re: editing define_main_page.php

    Hi mc,

    I fixed the /a> to </a>. thank you.
    I am still not seeing the iBooks or Paperback line on the store home page: pkasperassociates.com/classes/.
    What I see on Chrome and IE is the attached image - looks like the same book twice.

    karineName:  Snap3.jpg
Views: 181
Size:  24.9 KB

  5. #5
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,144
    Plugin Contributions
    11

    Default Re: editing define_main_page.php

    The one on the left is for product ID 180 (download) and the right is 186 (mail).

    If the only difference is the ID and delivery method, they will continue to look as if the same thing is there twice.

    You might want to consider the info at https://www.zen-cart.com/content.php...l-downloadable

  6. #6
    Join Date
    Jun 2009
    Location
    Sparta, TN
    Posts
    158
    Plugin Contributions
    0

    Default Re: editing define_main_page.php

    Quote Originally Posted by dbltoe View Post
    The one on the left is for product ID 180 (download) and the right is 186 (mail).

    If the only difference is the ID and delivery method, they will continue to look as if the same thing is there twice.

    You might want to consider the info at https://www.zen-cart.com/content.php...l-downloadable
    Just browsing the latest in the forums. I don't need this, but article is very well written and easy to understand. - Thanks!

  7. #7
    Join Date
    Dec 2010
    Posts
    94
    Plugin Contributions
    0

    Default Re: editing define_main_page.php

    I had done one product but then client kept making specials that affected either the paperback or the ebook, so it was easier to separate them out as two products.

  8. #8
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,144
    Plugin Contributions
    11

    Default Re: editing define_main_page.php

    Quote Originally Posted by karine View Post
    I had done one product but then client kept making specials that affected either the paperback or the ebook, so it was easier to separate them out as two products.
    You might check if Twitch has this mod working with 1.5.5#

    https://www.zen-cart.com/showthread....for-Attributes

  9. #9
    Join Date
    Jul 2018
    Location
    Lepia
    Posts
    13
    Plugin Contributions
    0

    Default Re: editing define_main_page.php

    Quote Originally Posted by karine View Post
    fresh install of 1.5.5 and using responsive classic template.

    Have edited /includes/languages/english/html_includes/responsive_classic/define_main_page.php
    but am having an issue with top two products: One is an ebook and one is a paperback and I wanted to identify this under the book title and above the price but my html work is not showing. Can you tell me why?

    <div class="centerBoxContentsNew centeredContent back" style="width:50%;"><a href="http://www.pkasperassociates.com/classes/index.php?main_page=product_info&cPath=65&products_id=180"><img src="images/ebooks/six-strategies-bookcover.jpg" alt="Six Strategies to be a More Effective and Efficient Monitor" title="Six Strategies to be a More Effective and Efficient Monitor" width="200" height="227" /></a><br /><a href="http://www.pkasperassociates.com/classes/index.php?main_page=product_info&cPath=65&products_id=180">Six Strategies to be a More Effective and Efficient Monitor/a><br />iBooks or Kindle<br /><span class="productBasePrice">$44.99</span></div>
    <div class="centerBoxContentsNew centeredContent back" style="width:50%;"><a href="http://www.pkasperassociates.com/classes/index.php?main_page=product_info&cPath=68&products_id=186"><img src="images/ebooks/six-strategies-bookcover.jpg" alt="Six Strategies to be a More Effective and Efficient Monitor" title="Six Strategies to be a More Effective and Efficient Monitor" width="200" height="227" /></a><br /><a href="http://www.pkasperassociates.com/classes/index.php?main_page=product_info&cPath=68&products_id=186">Six Strategies to be a More Effective and Efficient Monitor</a><br />Paperback<br /><span class="productBasePrice">$44.99</span></div>

    The code in the above - "<br />iBooks or Kindle" and "<br />Paperback" - do not show up on the web page: pkasperassociates.com/classes/

    I have tried to put "iBooks or Kindle" and "Paperback" within the </a> and in the same line with the title, without the <br />, and this doesn't work either.
    I would try to upload the raw file from the template

  10. #10
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,144
    Plugin Contributions
    11

    Default Re: editing define_main_page.php

    @ altruso. That portion of the problem was fixed early on. Different problem now.

 

 

Similar Threads

  1. editing define_main_page
    By peterapo in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 10 Jun 2010, 07:37 PM
  2. want to add php code in define_main_page.php
    By parin123 in forum General Questions
    Replies: 1
    Last Post: 2 Jul 2009, 04:27 PM
  3. Editing define_main_page corrupts home page?
    By kevinmc3 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 11 May 2009, 01:35 AM
  4. While editing define_main_page.php
    By JannyM in forum Customization from the Admin
    Replies: 2
    Last Post: 9 May 2009, 06:33 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR