Giter Site home page Giter Site logo

mivaecommerce / extensions Goto Github PK

View Code? Open in Web Editor NEW
3.0 6.0 3.0 230 KB

This is a collection of extensions, module page updates, and layout updates created for Shadows and Shadows-based ReadyThemes.

Home Page: https://apps.miva.com/readythemes.html

License: MIT License

CSS 0.17% JavaScript 35.14% HTML 35.16% SCSS 29.52%
readytheme miva shadows

extensions's Introduction

Extensions

This is a collection of extensions created for the Shadows, and Shadows-based, ReadyThemes.

Modules

When a module creates a new set of pages or layout, you can find ReadyTheme specific version of those here. These pages and layouts are for the Shadows, and Shadows-based, ReadyThemes.

  • Manage Quotes: Code
  • Points & Loyalty: Code

extensions's People

Contributors

influxweb avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

extensions's Issues

Contact - Invalid Return-Path Being Set

The current form processor is using <mvt:assign name="l.mail:headers" value="l.mail:headers $ 'Return-Path:' $ l.mail:from $ g.eol" />. That line is not valid; the return path is not a header that can be set, it's part of the SMTP dialogue and is based on the MAIL FROM issued by the application.

Correcting the Issue

Removing that line from the CTFM page code will prevent the issue.

To make the update prior to the next release, you will need to update CTFM with the following:

User Interface -> Pages -> CTFM:

<mvt:assign name="g.http_referer" value="s.http_referer" />
<mvt:if expr="'CTFM' CIN g.http_referer OR 'contact-form' CIN g.http_referer">
	<mvt:exit>
</mvt:if>

<mvt:if expr="NOT ISNULL g.website">
	<meta http-equiv="refresh" content="0;url=&mvte:urls:NTFD:auto;" />
<mvt:else>
	<mvt:assign name="g.eol" value="asciichar(13) $ asciichar(10)"/>
	
	<mvt:if expr="(ISNULL g.website) AND (NOT ISNULL g.human) AND (isdigit(g.human)) AND (g.human EQ crypto_base64_decode(g.verify))">

		<mvt:comment>
			<!--
			This will create the From address in proper format: "Store Name" <store_email@store_domain>
			-->
		</mvt:comment>
		<mvt:assign name="l.mail:from" value="asciichar(34) $ g.store:name $ asciichar(34) $ ' <' $ g.store:email $ '>'" />

		<mvt:comment>
			<!--
			This will create the Reply-To address in proper format: "Visitor Name" <visitor_email@visitor_domain>
			-->
		</mvt:comment>
		<mvt:assign name="l.mail:reply" value="asciichar(34) $ g.contactName $ asciichar(34) $ ' <' $ g.contactEmail $ '>'" />

		<mvt:comment>
			<!--
			By default, this form is designed to send to the store email address.
			You can change this by replacing g.store:email with 'my_email@my_domain.com'.
			-->
		</mvt:comment>
		<mvt:assign name="l.mail:to" value="g.store:email" />
		
		<mvt:comment>
			<!--
			If you would like to CC the form, you can add an address or a comma separated list to CC to
			multiple addresses.
			<mvt:assign name="l.mail:cc" value="'my_email@my_domain.com'" />
			- OR -
			<mvt:assign name="l.mail:cc" value="'my_email@my_domain.com,my_other_email@my_domain.com'" />
			-->
		</mvt:comment>
		<mvt:assign name="l.mail:cc" value="''" />

		<mvt:comment>
			<!--
			If you would like to BCC the form, you can add an address or a comma separated list to BCC to
			multiple addresses.
			<mvt:assign name="l.mail:bcc" value="'my_email@my_domain.com'" />
			- OR -
			<mvt:assign name="l.mail:bcc" value="'my_email@my_domain.com,my_other_email@my_domain.com'" />
			-->
		</mvt:comment>
		<mvt:assign name="l.mail:bcc" value="''" />
		
		<mvt:comment>
			<!--
			This will create a custom subject line for the email.
			-->
		</mvt:comment>
		<mvt:assign name="l.mail:subject" value="'[' $ g.store:name $ ' Contact Form] ' $ g.contactSubject" />

		<mvt:comment>
			<!--
			This will create the store message from user input.
			-->
		</mvt:comment>
		<mvt:assign name="l.mail:message" value="'Message from: ' $ g.contactName $ g.eol $ g.eol $ 'Email Address: ' $ g.contactEmail $ g.eol $ g.eol $ 'Message:' $ g.eol $ g.contactMessage" />

		<mvt:comment>
			<!--
			If you would like to send any additional SMTP headers, you can do that here.
			-->
		</mvt:comment>
		<mvt:assign name="l.mail:headers" value="l.mail:headers $ 'Reply-To:' $ l.mail:reply $ g.eol" />
		<mvt:assign name="l.mail:headers" value="l.mail:headers $ 'MIME-Version: 1.0' $ g.eol" />
		<mvt:assign name="l.mail:headers" value="l.mail:headers $ 'Content-Type: text/plain; charset=utf-8' $ g.eol" />


		<mvt:comment>
			<!--
			This function will send an email to the store.
			-->
		</mvt:comment>
		<mvt:do file="g.Module_Library_Utilities" name="g.sent" value="v9_SendEmail(l.mail)" />

		<mvt:comment>
			<!--
			This function will send a confirmation email to the visitor.
			If you do not wish to send a confirmation email, you can either `mvt:comment` this section
			out or delete it all together.
			-->
		</mvt:comment>
		<mvt:assign name="l.visitor_mail:from" value="asciichar(34) $ g.store:name $ asciichar(34) $ ' <' $ g.store:email $ '>'" />
		<mvt:assign name="l.visitor_mail:to" value="asciichar(34) $ g.contactName $ asciichar(34) $ ' <' $ g.contactEmail $ '>'" />
		<mvt:assign name="l.visitor_mail:subject" value="'[' $ g.store:name $ ' Contact Form] ' $ g.contactSubject" />
		<mvt:assign name="l.visitor_mail:message" value="'Dear ' $ g.contactName $ ',' $ g.eol $ g.eol $ 'Thank you for contacting ' $ g.store:name $ '; your message has been received.' $ g.eol $ g.eol $ 'Your Message:' $ g.eol $ g.contactMessage" />
		<mvt:assign name="l.visitor_mail:headers" value="'Reply-To:' $ asciichar(34) $ g.store:name $ asciichar(34) $ ' <' $ g.store:email $ '>' $ g.eol" />
		<mvt:do file="g.Module_Library_Utilities" name="g.visitor_sent" value="v9_SendEmail(l.visitor_mail)" />

		<mvt:if expr="g.sent">
			<meta http-equiv="refresh" content="0;url=&mvte:urls:CTUS:auto_sep;status=submitted" />
		<mvt:else>
			<meta http-equiv="refresh" content="0;url=&mvte:urls:CTUS:auto_sep;status=error" />
		</mvt:if>
	<mvt:else>
		<meta http-equiv="refresh" content="0;url=&mvte:urls:CTUS:auto_sep;status=error&amp;contactName=&mvte:global:contactName;&amp;contactEmail=&mvte:global:contactEmail;&amp;contactSubject=&mvte:global:contactSubject;&amp;contactMessage=&mvte:global:contactMessage;&amp;fault=has-error" />
	</mvt:if>
</mvt:if>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.