If this is your first visit, check our documentation. To post, register or login.
Forums / Community Contributed Add-Ons / Addon Shipping Modules / Each physical product, add more than 1 download pdf link-manual, specifications, etc.

Each physical product, add more than 1 download pdf link-manual, specifications, etc.

Locked

Started by rivs on 24 Sep 2010, 3:30 PM · Views: 1,385

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
24 Sep 2010, 3:30 PM
#1
rivs avatar

rivs

New Zenner

Join Date:
Mar 2010
Location:
NY - Hudson Valley
Posts:
30
Plugin Contributions:
0

Post #1 by rivs

Hi,
I'm not a php coder and could use some help. My client wants each of her physical products (not download products) to have multiple pdf download links on the product info display page. I currently have one due to manipulating the url link on the product page.
Is there a way to hard code the php so that a link to a pdf download could be inserted according to product id - Here is the current tpl_product_info_display.php where the url points to the value added in the admin url link. Thanks so much!! Kate

p.s. i tried the add-on to have multiple downloads and it did not turn out well so i'd prefer to hard-code the values when she has more than one download required.

<!--bof Product URL - changed to download pdf kf--> <?php ##if (zen_not_null($products_url)) { ######if ($flag_show_product_info_url == 1) { ?> ######<p id="productInfoLink" class="productGeneral "><?php echo sprintf(TEXT_MORE_INFORMATION, zen_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($products_url), 'NONSSL', true, false)); ?></p> <?php ######} // $flag_show_product_info_url ##} ?> <!--eof Product URL -->
24 Sep 2010, 3:37 PM
#2
drbyte avatar

drbyte

Sensei

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

Post #2 by drbyte

Why not just use basic HTML and put links into the product descriptions?

<a href="path/to/filename.pdf">Click here for manual</a>

No programming required that way.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

24 Sep 2010, 3:56 PM
#3
rivs avatar

rivs

New Zenner

Join Date:
Mar 2010
Location:
NY - Hudson Valley
Posts:
30
Plugin Contributions:
0

Post #3 by rivs

i am filled with joy!! thank you thank you thank you.

talk about overthinking the whole thing - I feel so relieved. thanks again.:clap: