Thread: Miscellaneous Hacks - CartPlog: The Lite PayPal Shopping Cart
View Single Post
  #65  
Old 08-27-2013, 08:55 PM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Bounce View Post
Hi,

Excellent add-on...

Is there the ability in the options to add a text area where the user can enter text?

For Example:

Special Requirements
< user enters text>
Not without some modification to this mod however I edited my version replacing the add to cart and view cart w/ e-junkie links to my products and services so it can be customized but on the entry field comment, I'm utilizing the easy forms mod in conjunction with this - https://vborg.vbsupport.ru/showthread.php?t=234385

Quote:
Originally Posted by Bounce View Post
Also can the thumbnail be clickable?

Thanks
Edit template cartplog_view_item and find:

Code:
			<vb:if condition="$cartplog['product_thumb']">
				<img style="{vb:raw vboptions.cartplog_thumbcss}" src="{vb:raw cartplog.product_thumb}" alt="" border="0" />
			<vb:else />
				<img style="{vb:raw vboptions.cartplog_thumbcss}" src="{vb:stylevar imgdir_misc}/cartplog_no_image.gif" alt="" border="0" />
			</vb:if>

Replace with:
Code:
			<vb:if condition="$cartplog['product_thumb']">
				<a href="cartplog.php?{vb:raw session.sessionurl}do=viewitem&amp;cartplogproductid={vb:raw cartplog.product_productid}"><img style="{vb:raw vboptions.cartplog_thumbcss}" src="{vb:raw cartplog.product_thumb}" alt="" border="0" /></a>
			<vb:else />
				<a href="cartplog.php?{vb:raw session.sessionurl}do=viewitem&amp;cartplogproductid={vb:raw cartplog.product_productid}"><img style="{vb:raw vboptions.cartplog_thumbcss}" src="{vb:stylevar imgdir_misc}/cartplog_no_image.gif" alt="" border="0" /></a>
			</vb:if>


Also edit template cartplog_product_item and find:
Code:
	<vb:if condition="$cartplog['product_thumb']">
		<img style="{vb:raw vboptions.cartplog_thumbcss}" src="{vb:raw cartplog.product_thumb}" alt="" border="0" />
	<vb:else />
		<img style="{vb:raw vboptions.cartplog_thumbcss}" src="{vb:stylevar imgdir_misc}/cartplog_no_image.gif" alt="" border="0" />
	</vb:if>

Replace with:
Code:
	<vb:if condition="$cartplog['product_thumb']">
		<a href="cartplog.php?{vb:raw session.sessionurl}do=viewitem&amp;cartplogproductid={vb:raw cartplog.product_productid}"><img style="{vb:raw vboptions.cartplog_thumbcss}" src="{vb:raw cartplog.product_thumb}" alt="" border="0" /></a>
	<vb:else />
		<a href="cartplog.php?{vb:raw session.sessionurl}do=viewitem&amp;cartplogproductid={vb:raw cartplog.product_productid}"><img style="{vb:raw vboptions.cartplog_thumbcss}" src="{vb:stylevar imgdir_misc}/cartplog_no_image.gif" alt="" border="0" /></a>
	</vb:if>


See where I'm headed with this? So basically check all templates for code similar to:
Code:
<img style="{vb:raw vboptions.cartplog_thumbcss}" src="{vb:raw cartplog.product_thumb}" alt="" border="0" />
And replace with:
Code:
<a href="cartplog.php?{vb:raw session.sessionurl}do=viewitem&amp;cartplogproductid={vb:raw cartplog.product_productid}"><img style="{vb:raw vboptions.cartplog_thumbcss}" src="{vb:raw cartplog.product_thumb}" alt="" border="0" /></a>

Tips:
- Making the picture large is fine, this way when they click it opens full size and cartplog will resize it to appear as a thumbnail regardless on the index, item view and other areas if you edit those as well.
- Make all images of products a square i.e. 600x600 pixels otherwise when it resizes the image may become distorted if for example it's 350x450 so basically no rectangular images.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01075 seconds
  • Memory Usage 1,785KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete