Jump to content

 

ecokate

Member Since 27 Oct 2020
Offline Last Active Feb 25 2021 03:06 PM
-----

Posts I've Made

In Topic: Add To Button And On Click Open Form In Modal Window

25 February 2021 - 02:45 PM

Thanks eCom. Hooks are not something I'm familiar with so I will leave it in the core files for now.

 

Also, in case anyone else wants to try this, in the end what I did was add a 'reserve' button next to the 'add to cart' button that went to a 'forms' page, I didn't use the pop-up since I didn't understand the code enough to get it to work. Since I use three languages on the site, I defined 'my_form_button_text' as a language variable so the button changes language depending on which language the user has picked. 

 

This is the final code that I pasted in to my product_data.tpl core file:

{include file="buttons/button.tpl" id="32&come_from=F" but_meta="ty-btn__primary.ty-btn__big" but_href="pages.view?page_id=32&come_from=F" but_text=__('my_form_button_text') content=''}

here shown in context: 

{if $extra_button}{$extra_button nofilter} {/if}
            {include file="buttons/add_to_cart.tpl" but_id=$_but_id but_name="dispatch[checkout.add..`$obj_id`]" but_role=$but_role block_width=$block_width obj_id=$obj_id product=$product but_meta=$add_to_cart_meta}
           	
			{assign var="cart_button_exists" value=true}
			{/if}
			
			{include file="buttons/button.tpl" id="32&come_from=F" but_meta="ty-btn__primary.ty-btn__big" but_href="pages.view?page_id=32&come_from=F" but_text=__('my_form_button_text') content=''}
	{/hook}

Now I just have to work out the css so the buttons line up...!


In Topic: Add To Button And On Click Open Form In Modal Window

23 February 2021 - 10:49 PM

I am trying to use this solution to add a button to my product page right underneath or next to the 'add to cart' button that sends people to a form I created, that will let them reserve the item (this is a temporary solution).

 

In this filepath: design/themes/[YOUR THEME]/templates/common/product_data.tpl I updated the file as following (where 123 is is my page ID for the form):

 

I have added the line from above 

{include file="common/popupbox.tpl" id="123" link_meta="ty-btn__primary" href="pages.view?page_id=123" link_text=__('my_form_button_text') text=__('my_form_header') content=''}

 

After this line: {include file="buttons/add_to_cart.tpl" but_id="button_cart_`$obj_prefix``$obj_id`" but_name="dispatch[checkout.add..`$obj_id`]" but_role=$but_role block_width=$block_width obj_id=$obj_id product=$product but_meta=$add_to_cart_meta}

 

I also added two new language variables my_form_button_text and my_form_header.

 

I manually deleted the cache. Nothing happens. 

 

Any ideas?

I am using MVE 4.12.1

 

I have it working now, I had to include &come_from=F , by that I mean id="XX&come_from=F''

Also it wasn't pasted in quite the right place.

 

I have a few additional loose ends still:

1. At the moment I have changed the product_data.tpl core file. I would prefer to make this change in the my_changes add-on but it didn't work when I saved it in the .../app/addons/my_changes folder. Is that the right path?

2. The new button doesn't match the 'add to cart' button. It is much smaller and has square edges (see for example https://www.moebel-b...od-table/?sl=en) . How do I make the the same size?

3. The confirmation email goes to the admin. How do we also send it to the person who reserved?

 

Any hints or help would be very much appreciated. 


In Topic: Help Fixing Alignment Of Search, Cart And Banners Please

21 February 2021 - 12:37 PM

PARTIALLY SOLVED ....After many hours of clicking around and reading the internet. In case anyone else has these problems, here are some of the solutions.

 

1. To fix the weird shopping cart issue, where the cart was over top of the word 'my cart' : 

  • Navigate to design / layout,  and open the gear icon for the block where your 'shopping cart' is
  • Paste 'top-cart-content' in the field 'User-defined CSS class'

 

2. To fix the alignment of the banner boxes on the landing page, which in my case seemed to spontaneously re-arranged themselves:

  • Open the page where the issue in in your browser
  • Hover your mouse over the part of the page where the issue is, right-click and select 'inspect' from the dropdown
  • Find the part of the code that relates to what you are interested in by mousing over the code in the 'elements' window
  • Play around with the numbers and text in the 'styles' and 'computed' tabs until it looks right
  • Copy the part that you changed 
  • Navigate to Design / Themes / Theme editor / Dropdown: Custom CSS and paste your new CSS code there
  • No idea if this is the right way to fix it, but it seems to have worked

I am still working on the search bar that floats to the top of the header block instead of the bottom, and doesn't align with the shopping cart (see https://www.moebel-b...shop-furniture/- we updated our URL), and the 'My account' alignment. 


In Topic: Add To Button And On Click Open Form In Modal Window

16 February 2021 - 01:40 PM

I am trying to use this solution to add a button to my product page right underneath or next to the 'add to cart' button that sends people to a form I created, that will let them reserve the item (this is a temporary solution).

 

In this filepath: design/themes/[YOUR THEME]/templates/common/product_data.tpl I updated the file as following (where 123 is is my page ID for the form):

 

I have added the line from above 

{include file="common/popupbox.tpl" id="123" link_meta="ty-btn__primary" href="pages.view?page_id=123" link_text=__('my_form_button_text') text=__('my_form_header') content=''}

 

After this line: {include file="buttons/add_to_cart.tpl" but_id="button_cart_`$obj_prefix``$obj_id`" but_name="dispatch[checkout.add..`$obj_id`]" but_role=$but_role block_width=$block_width obj_id=$obj_id product=$product but_meta=$add_to_cart_meta}

 

I also added two new language variables my_form_button_text and my_form_header.

 

I manually deleted the cache. Nothing happens. 

 

Any ideas?

I am using MVE 4.12.1


In Topic: Add Vendor Profile To Product Page?

15 February 2021 - 11:08 PM

Hi Otho, no progress. I was looking at the Yumbles code for the vendor info and it looks like this below. I am not sure how I would adapt this for my site, where I would need to paste the code. 

 

<div id="meet-your-maker">
<div class="cover" style="background-image: url(https://d1fm27ee7pjs...er_Cru8_2.jpg);">
<div>Meet your maker</div>
<img src="https://d1fm27ee7pjs...ler_Cru8_2.jpg"class="logo" alt="Cru8 ">
</div>
<div class="content clearfix">
<div class="follow-seller"><div class="follow-seller">
<a class="follow-seller-button" id="btn_follow_company" data-follow="2" role="button" data-url=""><span>+</span> Follow Maker
</a>
</div>
<script type="text/javascript" src="js/addons/yumbles_follow/follow.js"></script></div>
<div class="seller-info">
<p></p><p>Guilt free, raw and powerful superfood snacks created by someone who has experienced the positive results of high-raw eating firsthand.</p>
<p>Founder Alexi has... <a href="https://www.yumbles....cru8.html">More»</a></p>
</div>
</div>
<div class="more-products">
<h4>Products by Cru8 </h4>
<ul class="clearfix">
<li>
<img width="100" height="100" src="https://d1fm27ee7pjs...ip_cookies.jpg"alt="Raw Gluten-Free Chocolate Chip Cookies">
<span class="more-products_product-wide">Raw Gluten-Free Chocolate Chip Cookies</span>
<span class="more-products_product-narrow">Raw Gluten-Free...</span>
</a>
</li>
<li>
<img width="100" height="100" src="https://d1fm27ee7pjs...9_4jyl-fy.jpeg"alt="Raw Gluten-Free Cacao Macaroons">
<span class="more-products_product-wide">Raw Gluten-Free Cacao Macaroons</span>
<span class="more-products_product-narrow">Raw Gluten-Free...</span>
</a>
</li>
<li class="more">
<div><strong>19</strong><br>more</div>
</a>
</li>
</ul>
</div>
</div>