Jump to content

Pagination & Gateway Question


Big Spender

Recommended Posts

Pagination

 

What is the pagination amount for content.downloads.php & content.orders.php based off...?

 

Gateway Help

 

Also the code below which is on content.gateway.php is this used anywhere? There doesn't seem to be any related info in the files or admin area for this gateway help setting.

9:  {if !empty($gateway.help)} <a href="{$gateway.help}" class="info" title="{$LANG.common.information}"><img src="images/icons/information.png" alt="{$LANG.common.information}"/></a>   {/if}

Talkbacks

 

Firstly what is the comments section (maybe a comments plugin like disqus I suspect?) and talkbacks?

{foreach from=$COMMENTS item=html}
{$html}
{/foreach}
{if isset($TALKBACKS) && $TALKBACKS}
<section class="talkbalks">
<h2>{$LANG.catalogue.trackbacks}</h2>
{foreach from=$TRACKBACKS item=track}
<p>
<a href="{$track.url}" target="_blank">{$track.title}</a><br>
<blockquote cite="{$track.url}">&quot;{$track.excerpt}&quot;</blockquote>
</p>
{/foreach}
<h3>{$LANG.catalogue.trackback_url}</h3>
<p>{$TRACKBACK_URL}</p>
</section>
{/if}
Link to comment
Share on other sites

"What is the pagination amount for content.downloads.php & content.orders.php based off...?"

 

The total records. That is, there is code that sets a per page list limit of 10, 15, or 20 list items (depending on whatever list is being shown anywhere in CubeCart). Pagination is created/displayed when the total records that are returned from a query exceeds the per page list limit.

 

"Is $gateway.help used anywhere?"

 

In cubecart.class.php, in the _displayGateways() function, there is a hook that can be used to modify the list of enabled gateways returned from a query. Also, a gateway's admin settings panel could have a static or dynamic form field containing anything the gateway author wants to put in it. I haven't looked at all the gateways, but I have yet to see such a field in those that I have.

 

What are the comments and talkbacks sections?

 

Social Media outlets and/or links.

 

I would say you see these lines of code in the skin because someone made a (good) suggestion to put them in, even though they may not be used. With the hooks system, it's (relatively) easy to change the data gathered and delivered to the skin, but it's a real pain to get a hook to change the rendered output of template code.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...